diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-02-23 13:59:49 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-02-23 13:59:49 -0300 |
commit | 3adc35aefa7e5f58fe0e7d6678daeaa5e47dd7df (patch) | |
tree | 79520ac71677f154f91bbe29d11199ba5ab8de0f /activerecord/test/cases/finder_test.rb | |
parent | 79887593c18919fed49f441d64236362cb755872 (diff) | |
parent | d96550b53ecf3816dff3cb0d68dc976028dc9351 (diff) | |
download | rails-3adc35aefa7e5f58fe0e7d6678daeaa5e47dd7df.tar.gz rails-3adc35aefa7e5f58fe0e7d6678daeaa5e47dd7df.tar.bz2 rails-3adc35aefa7e5f58fe0e7d6678daeaa5e47dd7df.zip |
Merge pull request #23789 from wisetara/wisetara/deprecate-args-ActiveSupport__TestCase#assert_nothing_raised-for-pr
Wisetara/deprecate args active support test case#assert nothing raised for pr
Diffstat (limited to 'activerecord/test/cases/finder_test.rb')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 5b41630cd8..3e31874455 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -43,7 +43,7 @@ class FinderTest < ActiveRecord::TestCase end assert_equal "should happen", exception.message - assert_nothing_raised(RuntimeError) do + assert_nothing_raised do Topic.all.find(-> { raise "should not happen" }) { |e| e.title == topics(:first).title } end end @@ -540,7 +540,7 @@ class FinderTest < ActiveRecord::TestCase assert_deprecated do Topic.order("coalesce(author_name, title)").last end - end + end def test_last_on_relation_with_limit_and_offset post = posts('sti_comments') @@ -1086,7 +1086,7 @@ class FinderTest < ActiveRecord::TestCase end def test_finder_with_offset_string - assert_nothing_raised(ActiveRecord::StatementInvalid) { Topic.offset("3").to_a } + assert_nothing_raised { Topic.offset("3").to_a } end test "find_by with hash conditions returns the first matching record" do |