From 3fd1bcc5de0ce1b36cd18cba9cb6734cce73d543 Mon Sep 17 00:00:00 2001 From: Xero Date: Tue, 5 Mar 2024 10:15:10 -0500 Subject: [PATCH] allow year_acquired to be modifiable via ui --- test/controllers/plants_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/controllers/plants_controller_test.rb b/test/controllers/plants_controller_test.rb index aa7b3aa..a07b8bb 100644 --- a/test/controllers/plants_controller_test.rb +++ b/test/controllers/plants_controller_test.rb @@ -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)