Skip to content

Commit

Permalink
cleanup, assert on warning from postgres adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed May 8, 2013
1 parent 99433fd commit 7c69416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/relation_test.rb
Expand Up @@ -189,7 +189,7 @@ def test_respond_to_for_non_selected_element
post = Post.select(:title).first
assert_equal false, post.respond_to?(:body), "post should not respond_to?(:body) since invoking it raises exception"

post = Post.select("'title' as post_title").first
silence_warnings { post = Post.select("'title' as post_title").first }
assert_equal false, post.respond_to?(:title), "post should not respond_to?(:body) since invoking it raises exception"
end

Expand Down

0 comments on commit 7c69416

Please sign in to comment.