diff options
author | Genadi Samokovarov <gsamokovarov@gmail.com> | 2018-02-27 17:06:33 +0200 |
---|---|---|
committer | Genadi Samokovarov <gsamokovarov@gmail.com> | 2018-03-04 17:50:37 +0200 |
commit | a951729f45c579aa17b76a73f72880f90df9e910 (patch) | |
tree | 3be25fd52a520322cbe0491b60a85523decc6a0e /railties/test/command | |
parent | 5af643d8d6f8af19a85a34475f40ac18db7c71e9 (diff) | |
download | rails-a951729f45c579aa17b76a73f72880f90df9e910.tar.gz rails-a951729f45c579aa17b76a73f72880f90df9e910.tar.bz2 rails-a951729f45c579aa17b76a73f72880f90df9e910.zip |
Extract Rails::Command::Spellchecker
Diffstat (limited to 'railties/test/command')
-rw-r--r-- | railties/test/command/spellchecker_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/test/command/spellchecker_test.rb b/railties/test/command/spellchecker_test.rb new file mode 100644 index 0000000000..aff50a3e73 --- /dev/null +++ b/railties/test/command/spellchecker_test.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +require "abstract_unit" +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)) + end +end |