Skip to content

Commit

Permalink
Use StandardError instead of RuntimeError.
Browse files Browse the repository at this point in the history
Whoops.
  • Loading branch information
fimmtiu committed Jul 6, 2017
1 parent 06e89c9 commit 6b7347b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/adapter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ def test_numeric_value_out_of_ranges_are_translated_to_specific_exception
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

Expand Down

0 comments on commit 6b7347b

Please sign in to comment.