diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-06-03 18:24:14 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-06-03 18:24:14 +0900 |
commit | bad1a267f1740156729656c5fe4bfb7ba769a481 (patch) | |
tree | 2891d99b6d6bf7fd3a1bca0ec3a6d3a102a47285 | |
parent | 7e2465c6de86b43028685c0de434e60cb21773d0 (diff) | |
download | rails-bad1a267f1740156729656c5fe4bfb7ba769a481.tar.gz rails-bad1a267f1740156729656c5fe4bfb7ba769a481.tar.bz2 rails-bad1a267f1740156729656c5fe4bfb7ba769a481.zip |
Remove a redundant default_scope tests
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 81173945a3..86f3b0b962 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -695,16 +695,6 @@ class RelationTest < ActiveRecord::TestCase end end - def test_default_scope_with_conditions_string - assert_equal Developer.where(name: "David").map(&:id).sort, DeveloperCalledDavid.all.map(&:id).sort - assert_nil DeveloperCalledDavid.create!.name - end - - def test_default_scope_with_conditions_hash - assert_equal Developer.where(name: "Jamis").map(&:id).sort, DeveloperCalledJamis.all.map(&:id).sort - assert_equal "Jamis", DeveloperCalledJamis.create!.name - end - def test_default_scoping_finder_methods developers = DeveloperCalledDavid.order("id").map(&:id).sort assert_equal Developer.where(name: "David").map(&:id).sort, developers |