diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-06-01 01:12:07 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-06-01 01:52:20 +0900 |
commit | 262ef5df706dcfaa8770108acbc178db32e3ae88 (patch) | |
tree | f975cad2fdddfe5d33e286facf2e6430375ec93a /activerecord/test/cases | |
parent | 7c800fe5e338540ef195f071a7f3604ed4197f3f (diff) | |
download | rails-262ef5df706dcfaa8770108acbc178db32e3ae88.tar.gz rails-262ef5df706dcfaa8770108acbc178db32e3ae88.tar.bz2 rails-262ef5df706dcfaa8770108acbc178db32e3ae88.zip |
Add missing `delegate :extending, to: :all`
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/scoping/named_scoping_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/scoping/named_scoping_test.rb b/activerecord/test/cases/scoping/named_scoping_test.rb index 0c2cffe0d3..483ea7128d 100644 --- a/activerecord/test/cases/scoping/named_scoping_test.rb +++ b/activerecord/test/cases/scoping/named_scoping_test.rb @@ -551,6 +551,12 @@ class NamedScopingTest < ActiveRecord::TestCase assert_equal 1, SpecialComment.where(body: "go crazy").created.count end + def test_model_class_should_respond_to_extending + assert_raises OopsError do + Comment.unscoped.oops_comments.destroy_all + end + end + def test_model_class_should_respond_to_none assert !Topic.none? Topic.delete_all |