Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Do not use the attributes hash in the scaffold functional tests #5397

Merged
merged 2 commits into from Mar 13, 2012

Conversation

rafaelfranca
Copy link
Member

No description provided.

"#{name}: @#{singular_table_name}.#{name}"
end.sort.join(', ')
else
"title: @#{singular_table_name}.title"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this should be empty?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this?

  post :create, user: { }
  put :update, id: @user, user: { }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. I don 't think it makes sense to send a value that potentially does not exist.

josevalim added a commit that referenced this pull request Mar 13, 2012
Do not use the attributes hash in the scaffold functional tests
@josevalim josevalim merged commit 21b69b2 into rails:master Mar 13, 2012
@josevalim
Copy link
Contributor

@rafaelfranca pull request for 3-2-stable please? We will need to use => for the hash syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants