Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

active_scaffold generate creates broken _spec file #99

Open
mcr opened this issue Dec 1, 2011 · 0 comments
Open

active_scaffold generate creates broken _spec file #99

mcr opened this issue Dec 1, 2011 · 0 comments

Comments

@mcr
Copy link

mcr commented Dec 1, 2011

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant