diff options
author | Xavier Noria <fxn@hashref.com> | 2016-07-18 10:37:15 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-07-18 10:37:15 +0200 |
commit | b097a48c5f237d6ea30e291824fb39872331d29f (patch) | |
tree | 20a683ce6522db8f78d84e8531e1e742f3f11a9f | |
parent | 8f84d092c486f2862c1a1ba3c6e758db9608b575 (diff) | |
download | rails-b097a48c5f237d6ea30e291824fb39872331d29f.tar.gz rails-b097a48c5f237d6ea30e291824fb39872331d29f.tar.bz2 rails-b097a48c5f237d6ea30e291824fb39872331d29f.zip |
adds coverage for the deprecation of error_on_ignored_order
-rw-r--r-- | activerecord/test/cases/batches_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/cases/batches_test.rb b/activerecord/test/cases/batches_test.rb index 2c6011489e..837ad76686 100644 --- a/activerecord/test/cases/batches_test.rb +++ b/activerecord/test/cases/batches_test.rb @@ -598,4 +598,12 @@ class EachTest < ActiveRecord::TestCase ActiveRecord::Base.error_on_ignored_order = prev end end + + test 'error_on_ignored_order_or_limit is deprecated' do + expected = ActiveRecord::Base.error_on_ignored_order + actual = assert_deprecated 'Please use error_on_ignored_order instead.' do + ActiveRecord::Base.error_on_ignored_order_or_limit + end + assert_equal expected, actual + end end |