diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-17 03:29:57 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-17 03:32:11 +0200 |
commit | fb6b80562041e8d2378cad1b51f8c234fe76fd5e (patch) | |
tree | e407af937ad119b1a5a6c977b13319f24994cde2 /activerecord/test/cases/method_scoping_test.rb | |
parent | d14e2987b583a3dcb6836d310f77ce367c7396f8 (diff) | |
download | rails-fb6b80562041e8d2378cad1b51f8c234fe76fd5e.tar.gz rails-fb6b80562041e8d2378cad1b51f8c234fe76fd5e.tar.bz2 rails-fb6b80562041e8d2378cad1b51f8c234fe76fd5e.zip |
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
Diffstat (limited to 'activerecord/test/cases/method_scoping_test.rb')
-rw-r--r-- | activerecord/test/cases/method_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/method_scoping_test.rb b/activerecord/test/cases/method_scoping_test.rb index 5256ab8d11..312628a3e3 100644 --- a/activerecord/test/cases/method_scoping_test.rb +++ b/activerecord/test/cases/method_scoping_test.rb @@ -449,7 +449,7 @@ class NestedScopingTest < ActiveRecord::TestCase Comment.send(:with_scope, :create => { :body => "Hey guys, nested scopes are broken. Please fix!" }) do Comment.send(:with_exclusive_scope, :create => { :post_id => 1 }) do assert_equal({:post_id => 1}, Comment.scoped.send(:scope_for_create)) - assert Comment.new.body.blank? + assert_blank Comment.new.body comment = Comment.create :body => "Hey guys" end end |