You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated rspec file needs to call the submitted params "record" rather than the name of the model, otherwise, one gets
errors inside update_attributes, only it's really hard to see that, because rspec catches that exception, and forgets to print
the exception location.
I think that this fix involves rspec patches to make it more AS aware.
it "creates a new Connection" do
expect {
-post :create, :connection => valid_attributes
+post :create, :record => valid_attributes
}.to change(Connection, :count).by(1)
end
The text was updated successfully, but these errors were encountered:
The generated rspec file needs to call the submitted params "record" rather than the name of the model, otherwise, one gets
errors inside update_attributes, only it's really hard to see that, because rspec catches that exception, and forgets to print
the exception location.
I think that this fix involves rspec patches to make it more AS aware.
The text was updated successfully, but these errors were encountered: