Sha256: 72e6a4f0ed864b9925da6bc354dd01fbb9489f7ab251e07a76dfb9fef01e8c7a

Contents?: true

Size: 380 Bytes

Versions: 12

Compression:

Stored size: 380 Bytes

Contents

require_relative 'test_helper'

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

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

  def test_did_you_mean?
    assert_nil @error.did_you_mean?
  end

  def test_message
    refute_includes "Did you mean?", @error.message
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
did_you_mean-0.9.10-java test/null_finder_test.rb
did_you_mean-0.9.10 test/null_finder_test.rb
did_you_mean-0.9.9-java test/null_finder_test.rb
did_you_mean-0.9.9 test/null_finder_test.rb
did_you_mean-0.9.8 test/null_finder_test.rb
did_you_mean-0.9.7 test/null_finder_test.rb
did_you_mean-0.9.6-java test/null_finder_test.rb
did_you_mean-0.9.6 test/null_finder_test.rb
did_you_mean-0.9.5 test/null_finder_test.rb
did_you_mean-0.9.4 test/null_finder_test.rb
did_you_mean-0.9.2 test/null_finder_test.rb
did_you_mean-0.9.0 test/null_finder_test.rb