diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-01-05 17:59:36 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-01-05 18:04:52 +0100 |
commit | 947e1d5e85fa87128b7c5e21da55b92826cd7801 (patch) | |
tree | 5d86ab00506c39d154226f177cce36245d2fd440 /activerecord/test/cases/relation_scoping_test.rb | |
parent | fada87e916dd50eb6766cac919de41f0be2a12bc (diff) | |
download | rails-947e1d5e85fa87128b7c5e21da55b92826cd7801.tar.gz rails-947e1d5e85fa87128b7c5e21da55b92826cd7801.tar.bz2 rails-947e1d5e85fa87128b7c5e21da55b92826cd7801.zip |
deprecate `assert_blank` and `assert_present`.
They don't add any benefits over `assert object.blank?`
and `assert object.present?`
Diffstat (limited to 'activerecord/test/cases/relation_scoping_test.rb')
-rw-r--r-- | activerecord/test/cases/relation_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation_scoping_test.rb b/activerecord/test/cases/relation_scoping_test.rb index d318dab1e1..78fb91d321 100644 --- a/activerecord/test/cases/relation_scoping_test.rb +++ b/activerecord/test/cases/relation_scoping_test.rb @@ -227,7 +227,7 @@ class NestedRelationScopingTest < ActiveRecord::TestCase def test_nested_exclusive_scope_for_create comment = Comment.create_with(:body => "Hey guys, nested scopes are broken. Please fix!").scoping do Comment.unscoped.create_with(:post_id => 1).scoping do - assert_blank Comment.new.body + assert Comment.new.body.blank? Comment.create :body => "Hey guys" end end |