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

tests for Relation .present? .blank? #5469

Merged
merged 2 commits into from
Mar 16, 2012
Merged

Conversation

th1agoalmeida
Copy link
Contributor

No description provided.

assert !topics.blank?

#shows count of topics and loops after loading the query should not trigger extra queries either
assert_no_queries topics.size
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to pass a block, otherwise assert_no_queries doesn't do anything. In any case, you don't need assert_no_queries since we are already checking assert_queries at the top.

@th1agoalmeida
Copy link
Contributor Author

blocks added

josevalim added a commit that referenced this pull request Mar 16, 2012
tests for Relation .present? .blank?
@josevalim josevalim merged commit 8d87d5c into rails:master Mar 16, 2012
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