diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-05-18 20:17:35 -0300 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-05-19 12:11:46 +0200 |
commit | 20deb677a23d2a57f0a946dc98debe0fcdb70c40 (patch) | |
tree | 006974d0d2ad173354e67cdfb12993bbc8bfed7f /activerecord/test/cases/named_scope_test.rb | |
parent | 07f733c6315980bde120c98c6b8a25e2773ee6bf (diff) | |
download | rails-20deb677a23d2a57f0a946dc98debe0fcdb70c40.tar.gz rails-20deb677a23d2a57f0a946dc98debe0fcdb70c40.tar.bz2 rails-20deb677a23d2a57f0a946dc98debe0fcdb70c40.zip |
Add missing models and fixtures [#2673 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@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, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb index 69d01d5c2a..92fe48cb5a 100644 --- a/activerecord/test/cases/named_scope_test.rb +++ b/activerecord/test/cases/named_scope_test.rb @@ -373,7 +373,7 @@ class NamedScopeTest < ActiveRecord::TestCase end end -class DynamicScopeMatchTest < ActiveRecord::TestCase +class DynamicScopeMatchTest < ActiveRecord::TestCase def test_scoped_by_no_match assert_nil ActiveRecord::DynamicScopeMatch.match("not_scoped_at_all") end @@ -387,6 +387,8 @@ class DynamicScopeMatchTest < ActiveRecord::TestCase end class DynamicScopeTest < ActiveRecord::TestCase + fixtures :posts + def test_dynamic_scope assert_equal Post.scoped_by_author_id(1).find(1), Post.find(1) assert_equal Post.scoped_by_author_id_and_title(1, "Welcome to the weblog").first, Post.find(:first, :conditions => { :author_id => 1, :title => "Welcome to the weblog"}) |