diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-15 18:09:33 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-15 18:22:31 -0700 |
commit | 1def14309f32cc1c7d66b8625754ba2827410c96 (patch) | |
tree | 332ef658525b839eec1269a442494687ec60ad6b /activerecord/test/cases/named_scope_test.rb | |
parent | 8dd731bc502a07f4fb76eb2706a1f3bca479ef63 (diff) | |
download | rails-1def14309f32cc1c7d66b8625754ba2827410c96.tar.gz rails-1def14309f32cc1c7d66b8625754ba2827410c96.tar.bz2 rails-1def14309f32cc1c7d66b8625754ba2827410c96.zip |
cleaning up a bunch of parse time warnings in AR [#4186 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/test/cases/named_scope_test.rb')
-rw-r--r-- | activerecord/test/cases/named_scope_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb index 894d96346e..6c2b4fa3a7 100644 --- a/activerecord/test/cases/named_scope_test.rb +++ b/activerecord/test/cases/named_scope_test.rb @@ -83,8 +83,8 @@ class NamedScopeTest < ActiveRecord::TestCase end def test_scopes_are_composable - assert_equal (approved = Topic.find(:all, :conditions => {:approved => true})), Topic.approved - assert_equal (replied = Topic.find(:all, :conditions => 'replies_count > 0')), Topic.replied + assert_equal((approved = Topic.find(:all, :conditions => {:approved => true})), Topic.approved) + assert_equal((replied = Topic.find(:all, :conditions => 'replies_count > 0')), Topic.replied) assert !(approved == replied) assert !(approved & replied).empty? |