diff --git a/lib/active_model/serializer/concerns/attributes.rb b/lib/active_model/serializer/concerns/attributes.rb index d1968d77e..6ee2732fd 100644 --- a/lib/active_model/serializer/concerns/attributes.rb +++ b/lib/active_model/serializer/concerns/attributes.rb @@ -66,7 +66,7 @@ def _attributes end # @api private - # maps attribute value to explict key name + # maps attribute value to explicit key name # @see Serializer::attribute # @see FragmentCache#fragment_serializer def _attributes_keys diff --git a/test/action_controller/json_api/errors_test.rb b/test/action_controller/json_api/errors_test.rb index dd1249f20..6da3c9ada 100644 --- a/test/action_controller/json_api/errors_test.rb +++ b/test/action_controller/json_api/errors_test.rb @@ -14,10 +14,10 @@ def test_active_model_with_multiple_errors { source: { pointer: '/data/attributes/id' }, detail: 'must be a uuid' } ] }.to_json - assert_equal json_reponse_body.to_json, expected_errors_object + assert_equal json_response_body.to_json, expected_errors_object end - def json_reponse_body + def json_response_body JSON.load(@response.body) end diff --git a/test/action_controller/serialization_test.rb b/test/action_controller/serialization_test.rb index e650cbfdb..dfd72b42e 100644 --- a/test/action_controller/serialization_test.rb +++ b/test/action_controller/serialization_test.rb @@ -456,7 +456,7 @@ def use_adapter? end end - def test_render_event_is_emmited + def test_render_event_is_emitted subscriber = ::ActiveSupport::Notifications.subscribe('render.active_model_serializers') do |name| @name = name end diff --git a/test/active_model_serializers/json_pointer_test.rb b/test/active_model_serializers/json_pointer_test.rb index 0c8cf58fc..60619ee6e 100644 --- a/test/active_model_serializers/json_pointer_test.rb +++ b/test/active_model_serializers/json_pointer_test.rb @@ -13,7 +13,7 @@ def test_primary_data_pointer assert_equal '/data', pointer end - def test_unkown_data_pointer + def test_unknown_data_pointer assert_raises(TypeError) do ActiveModelSerializers::JsonPointer.new(:unknown) end