blob: aff50a3e738cb845b93addd0ea8c11308ce9a028 (
plain) (
tree)
|
|
# 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
|