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:
parent
06e89c922c
commit
6b7347b124
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue