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/command/spellchecker_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/command/spellchecker_test.rb')
-rw-r--r-- | railties/test/command/spellchecker_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/command/spellchecker_test.rb b/railties/test/command/spellchecker_test.rb index aff50a3e73..e6a7a3957c 100644 --- a/railties/test/command/spellchecker_test.rb +++ b/railties/test/command/spellchecker_test.rb @@ -5,6 +5,6 @@ require "rails/command/spellchecker" class Rails::Command::SpellcheckerTest < ActiveSupport::TestCase test "suggests a word correction from dictionary" do - assert_equal %w(thin cgi puma), Rails::Command::Spellchecker.suggest("tin", from: %w(puma thin cgi)) + assert_equal "thin", Rails::Command::Spellchecker.suggest("tin", from: %w(puma thin cgi)) end end |