aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/command/spellchecker_test.rb
blob: e6a7a3957c04f432bb74488b2f49105c64b410f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
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 "thin", Rails::Command::Spellchecker.suggest("tin", from: %w(puma thin cgi))
  end
end