diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-02 22:09:10 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-02 22:11:20 -0200 |
commit | 4d7080f80c1ec4792730943b33b6eac2a1562b2a (patch) | |
tree | 289bc98d545cbc9771ed70a4d8292abaae2ba03c /activerecord/test/cases/scoping | |
parent | 09447929a06a4650d82ed51af56e3365ec7583a6 (diff) | |
download | rails-4d7080f80c1ec4792730943b33b6eac2a1562b2a.tar.gz rails-4d7080f80c1ec4792730943b33b6eac2a1562b2a.tar.bz2 rails-4d7080f80c1ec4792730943b33b6eac2a1562b2a.zip |
unscope now works on default_scope after 94924dc32baf78f13e289172534c2e71c9c8cade
Diffstat (limited to 'activerecord/test/cases/scoping')
-rw-r--r-- | activerecord/test/cases/scoping/default_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/scoping/default_scoping_test.rb b/activerecord/test/cases/scoping/default_scoping_test.rb index 76f395ba83..4fd9d6f52a 100644 --- a/activerecord/test/cases/scoping/default_scoping_test.rb +++ b/activerecord/test/cases/scoping/default_scoping_test.rb @@ -103,7 +103,7 @@ class DefaultScopingTest < ActiveRecord::TestCase def test_unscope_overrides_default_scope expected = Developer.all.collect { |dev| [dev.name, dev.id] } - received = Developer.order('name ASC, id DESC').unscope(:order).collect { |dev| [dev.name, dev.id] } + received = DeveloperCalledJamis.unscope(:where).collect { |dev| [dev.name, dev.id] } assert_equal expected, received end |