Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup, assert on warning from postgres adapter

  • Loading branch information...
commit 7c694165f95c5b27a6b288bf3de9b69301c54e93 1 parent 99433fd
@senny senny authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/relation_test.rb
View
2  activerecord/test/cases/relation_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.