Sha256: 93ecad226497fdd9b3de8a6cd32d1579b88dcd5e1448f53385e95922a369a8e5

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 Bytes

Contents

require 'test_helper'

class UncorrectableNameCheckTest < Minitest::Test
  class FirstNameError < NameError; end

  def setup
    @error = assert_raises(FirstNameError) do
      raise FirstNameError, "Other name error"
    end
  end

  def test_message
    assert_equal "Other name error", @error.message
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
did_you_mean-1.3.1 test/spell_checking/uncorrectable_name_check_test.rb
did_you_mean-1.2.2 test/spell_checking/uncorrectable_name_check_test.rb
did_you_mean-1.3.0 test/spell_checking/uncorrectable_name_check_test.rb
did_you_mean-1.2.1 test/spell_checking/uncorrectable_name_check_test.rb
did_you_mean-1.2.0 test/spell_checking/uncorrectable_name_check_test.rb