Skip to content

Commit

Permalink
Add missing object context needed for tests to be run alone
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Mar 17, 2016
1 parent 6ef4e26 commit a7eca81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/action_controller/serialization_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def use_adapter?
end

def test_render_event_is_emmited
ActiveSupport::Notifications.subscribe('render.active_model_serializers') do |name|
::ActiveSupport::Notifications.subscribe('render.active_model_serializers') do |name|
@name = name
end

Expand Down
4 changes: 3 additions & 1 deletion test/active_model_serializers/adapter_for_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'test_helper'

module ActiveModelSerializers
class AdapterForTest < ActiveSupport::TestCase
class AdapterForTest < ::ActiveSupport::TestCase
UnknownAdapterError = ::ActiveModelSerializers::Adapter::UnknownAdapterError

def test_serializer_adapter_returns_configured_adapter
Expand Down

0 comments on commit a7eca81

Please sign in to comment.