Skip to content

Commit bbcadec

Browse files
authored
Merge pull request #1999 from bf4/typos
Fix typos [ci skip]
2 parents 0422a1e + 05430fb commit bbcadec

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/active_model/serializer/concerns/attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _attributes
6666
end
6767

6868
# @api private
69-
# maps attribute value to explict key name
69+
# maps attribute value to explicit key name
7070
# @see Serializer::attribute
7171
# @see FragmentCache#fragment_serializer
7272
def _attributes_keys

test/action_controller/json_api/errors_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ def test_active_model_with_multiple_errors
1414
{ source: { pointer: '/data/attributes/id' }, detail: 'must be a uuid' }
1515
]
1616
}.to_json
17-
assert_equal json_reponse_body.to_json, expected_errors_object
17+
assert_equal json_response_body.to_json, expected_errors_object
1818
end
1919

20-
def json_reponse_body
20+
def json_response_body
2121
JSON.load(@response.body)
2222
end
2323

test/action_controller/serialization_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def use_adapter?
456456
end
457457
end
458458

459-
def test_render_event_is_emmited
459+
def test_render_event_is_emitted
460460
subscriber = ::ActiveSupport::Notifications.subscribe('render.active_model_serializers') do |name|
461461
@name = name
462462
end

test/active_model_serializers/json_pointer_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_primary_data_pointer
1313
assert_equal '/data', pointer
1414
end
1515

16-
def test_unkown_data_pointer
16+
def test_unknown_data_pointer
1717
assert_raises(TypeError) do
1818
ActiveModelSerializers::JsonPointer.new(:unknown)
1919
end

0 commit comments

Comments
 (0)