We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd41e1b commit 56662e9Copy full SHA for 56662e9
test/action_controller/serialization_test.rb
@@ -454,13 +454,15 @@ def use_adapter?
454
end
455
456
def test_render_event_is_emmited
457
- ::ActiveSupport::Notifications.subscribe('render.active_model_serializers') do |name|
+ subscriber = ::ActiveSupport::Notifications.subscribe('render.active_model_serializers') do |name|
458
@name = name
459
460
461
get :render_using_implicit_serializer
462
463
assert_equal 'render.active_model_serializers', @name
464
+ ensure
465
+ ActiveSupport::Notifications.unsubscribe(subscriber) if subscriber
466
467
468
0 commit comments