changed_homework = assigns(:homework) # get it from the controller’s
instance
now compare original_homework and changed_homework.
I don’t know what you’re really trying to test here, but this sounds
like business logic. The controller should pass parameters to a
fully-tested model so your controller tests really should be testing
for how the controller handles “it worked” vs “it didn’t work”. The
details of what gets set should be covered in a unit test.
test "it should show a success message when created successfully do
end
test “it should show an error message when not created successfully” do