aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-17 14:59:48 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-17 14:59:48 -0700
commit2eecc0d8dccf7f12518e05a72192eb853e5ee474 (patch)
treede76f75c8910d0eafcd1f80e209e0314243b5edb /activerecord/test
parent677b64fcd527529390e232ceedf8fa8bfac224e2 (diff)
downloadrails-2eecc0d8dccf7f12518e05a72192eb853e5ee474.tar.gz
rails-2eecc0d8dccf7f12518e05a72192eb853e5ee474.tar.bz2
rails-2eecc0d8dccf7f12518e05a72192eb853e5ee474.zip
include bind values from the default scope
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relation_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb
index 482c1b3d48..03c7009568 100644
--- a/activerecord/test/cases/relation_test.rb
+++ b/activerecord/test/cases/relation_test.rb
@@ -12,10 +12,7 @@ module ActiveRecord
end
def test_construction
- relation = nil
- assert_nothing_raised do
- relation = Relation.new FakeKlass, :b
- end
+ relation = Relation.new FakeKlass, :b
assert_equal FakeKlass, relation.klass
assert_equal :b, relation.table
assert !relation.loaded, 'relation is not loaded'