aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-06-29 19:47:04 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-29 19:50:09 +0200
commit67582f08bf86ec71a27363554bc550e929a007f7 (patch)
tree08d32373ddb44f7033779ca0b60ccefed3f3cfb0 /activerecord/test/cases
parent7ea85ff516df142b60126e2dcc1174fd0b8f85a9 (diff)
downloadrails-67582f08bf86ec71a27363554bc550e929a007f7.tar.gz
rails-67582f08bf86ec71a27363554bc550e929a007f7.tar.bz2
rails-67582f08bf86ec71a27363554bc550e929a007f7.zip
Push a failing test for issues [#4994] and [#5003].
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/named_scope_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb
index 6574e4cfc0..dc85b395d3 100644
--- a/activerecord/test/cases/named_scope_test.rb
+++ b/activerecord/test/cases/named_scope_test.rb
@@ -450,6 +450,12 @@ class NamedScopeTest < ActiveRecord::TestCase
assert before.object_id != post.comments.containing_the_letter_e.object_id, "AssociationCollection##{method} should reset the named scopes cache"
end
end
+
+ def test_named_scoped_are_lazy_loaded_if_table_still_does_not_exist
+ assert_nothing_raised do
+ require "models/without_table"
+ end
+ end
end
class DynamicScopeMatchTest < ActiveRecord::TestCase