mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
10 lines
328 B
Ruby
10 lines
328 B
Ruby
# 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
|