diff options
author | Dennis Taylor <dennis.taylor@clio.com> | 2017-07-06 10:33:36 -0700 |
---|---|---|
committer | Dennis Taylor <dennis.taylor@clio.com> | 2017-07-06 10:33:36 -0700 |
commit | 6b7347b124064bbbaf3a20eadee7fbec977eed4c (patch) | |
tree | 021135d0f415ec74321244aec816ad039a14dce0 /activerecord | |
parent | 06e89c922c770f81c98c68eed9a4bfd96e6770c7 (diff) | |
download | rails-6b7347b124064bbbaf3a20eadee7fbec977eed4c.tar.gz rails-6b7347b124064bbbaf3a20eadee7fbec977eed4c.tar.bz2 rails-6b7347b124064bbbaf3a20eadee7fbec977eed4c.zip |
Use StandardError instead of RuntimeError.
Whoops.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/adapter_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb index 2236039ff7..3827e87d35 100644 --- a/activerecord/test/cases/adapter_test.rb +++ b/activerecord/test/cases/adapter_test.rb @@ -212,9 +212,9 @@ module ActiveRecord end def test_exceptions_from_notifications_are_not_translated - original_error = RuntimeError.new("This RuntimeError shouldn't get translated") + original_error = StandardError.new("This StandardError shouldn't get translated") subscriber = ActiveSupport::Notifications.subscribe("sql.active_record") { raise original_error } - actual_error = assert_raises(RuntimeError) do + actual_error = assert_raises(StandardError) do @connection.execute("SELECT * FROM posts") end |