diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2018-03-29 11:05:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 11:05:47 -0500 |
commit | 480595e4919256ce692cb43f53ef05cb43d93cff (patch) | |
tree | e2ea880c72c1ce012a1ee2d6cbf85fb8fed65701 /railties/test/generators_test.rb | |
parent | 1765f09b10483f69fd13c238db7122179d8b4e6a (diff) | |
parent | cb25f2c989588edf77f978820196b4446e01ffe8 (diff) | |
download | rails-480595e4919256ce692cb43f53ef05cb43d93cff.tar.gz rails-480595e4919256ce692cb43f53ef05cb43d93cff.tar.bz2 rails-480595e4919256ce692cb43f53ef05cb43d93cff.zip |
Merge pull request #32289 from gsamokovarov/did-you-mean-suggestions
Use `did_you_mean` spell checker for option suggestions
Diffstat (limited to 'railties/test/generators_test.rb')
-rw-r--r-- | railties/test/generators_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb index 9f1f2a2289..a16a2d3f0a 100644 --- a/railties/test/generators_test.rb +++ b/railties/test/generators_test.rb @@ -33,7 +33,7 @@ class GeneratorsTest < Rails::Generators::TestCase def test_generator_suggestions name = :migrationz output = capture(:stdout) { Rails::Generators.invoke name } - assert_match "Maybe you meant 'migration'", output + assert_match 'Maybe you meant "migration"?', output end def test_generator_suggestions_except_en_locale @@ -43,7 +43,7 @@ class GeneratorsTest < Rails::Generators::TestCase I18n.default_locale = :ja name = :tas output = capture(:stdout) { Rails::Generators.invoke name } - assert_match "Maybe you meant 'task', 'job' or", output + assert_match 'Maybe you meant "task"?', output ensure I18n.available_locales = orig_available_locales I18n.default_locale = orig_default_locale @@ -52,7 +52,7 @@ class GeneratorsTest < Rails::Generators::TestCase def test_generator_multiple_suggestions name = :tas output = capture(:stdout) { Rails::Generators.invoke name } - assert_match "Maybe you meant 'task', 'job' or", output + assert_match 'Maybe you meant "task"?', output end def test_help_when_a_generator_with_required_arguments_is_invoked_without_arguments |