Skip to content

Commit

Permalink
allow year_acquired to be modifiable via ui
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Mar 5, 2024
1 parent fbb5d17 commit 3fd1bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/controllers/plants_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PlantsControllerTest < ActionDispatch::IntegrationTest

test "should create plant" do
assert_difference("Plant.count") do
post plants_url, params: { plant: { name: 'PlantThree', family_id: 1, genus_id: 1, status_id: 1 } }
post plants_url, params: { plant: { name: 'PlantThree', family_id: 1, genus_id: 1, status_id: 1, year_acquired: 2017 } }
end

assert_redirected_to plant_url(Plant.last)
Expand Down

0 comments on commit 3fd1bcc

Please sign in to comment.