1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use StandardError instead of RuntimeError.

Whoops.
This commit is contained in:
Dennis Taylor 2017-07-06 10:33:36 -07:00
parent 06e89c922c
commit 6b7347b124

View file

@ -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