rails--rails/railties/test/command/spellchecker_test.rb

11 lines
328 B
Ruby
Raw Normal View History

2018-02-27 15:06:33 +00:00
# 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