Skip to content

Commit 05430fb

Browse files
committed
Fix typos
``` go get -u github.com/client9/misspell/cmd/misspell misspell -w -q -error -source=text {app,config,lib,test}/**/* ``` > workers = flag.Int("j", 0, "Number of workers, 0 = number of CPUs") > writeit = flag.Bool("w", false, "Overwrite file with corrections (default is just to display)") > quietFlag = flag.Bool("q", false, "Do not emit misspelling output") > outFlag = flag.String("o", "stdout", "output file or [stderr|stdout|]") > format = flag.String("f", "", "'csv', 'sqlite3' or custom Golang template for output") > ignores = flag.String("i", "", "ignore the following corrections, comma separated") > locale = flag.String("locale", "", "Correct spellings using locale perferances for US or UK. Default is to use a neutral variety of English. Setting locale to US will correct the British spelling of 'colour' to 'color'") > mode = flag.String("source", "auto", "Source mode: auto=guess, go=golang source, text=plain or markdown-like text") > debugFlag = flag.Bool("debug", false, "Debug matching, very slow") > exitError = flag.Bool("error", false, "Exit with 2 if misspelling found")
1 parent 0422a1e commit 05430fb

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)