Skip to content

Commit

Permalink
Change all "can not"s to the correct "cannot"
Browse files Browse the repository at this point in the history
It's been 6 years since [the original](#13584), so we're overdue for a sequel.

The correct word is "cannot", one word, not "can not", two words.
  • Loading branch information
tjschuck committed Feb 4, 2020
1 parent a7104fa commit 6af50a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -19,7 +19,7 @@ def run
end
else
# Custom preload scope is used and
# the association can not be marked as loaded
# the association cannot be marked as loaded
# Loading into a Hash instead
records_by_owner
end
Expand Down
Expand Up @@ -64,7 +64,7 @@ module Inflector
def transliterate(string, replacement = "?", locale: nil)
string = string.dup if string.frozen?
raise ArgumentError, "Can only transliterate strings. Received #{string.class.name}" unless string.is_a?(String)
raise ArgumentError, "Can not transliterate strings with #{string.encoding} encoding" unless ALLOWED_ENCODINGS_FOR_TRANSLITERATE.include?(string.encoding)
raise ArgumentError, "Cannot transliterate strings with #{string.encoding} encoding" unless ALLOWED_ENCODINGS_FOR_TRANSLITERATE.include?(string.encoding)

input_encoding = string.encoding

Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/transliterate_test.rb
Expand Up @@ -88,7 +88,7 @@ def test_transliterate_handles_strings_with_incompatible_encodings
exception = assert_raises ArgumentError do
ActiveSupport::Inflector.transliterate(string)
end
assert_equal "Can not transliterate strings with #{encoding} encoding", exception.message
assert_equal "Cannot transliterate strings with #{encoding} encoding", exception.message
end
end

Expand Down

0 comments on commit 6af50a9

Please sign in to comment.