File: test_uncorrectable_name_check.rb

package info (click to toggle)
ruby-did-you-mean 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 412 kB
  • sloc: ruby: 1,755; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require_relative '../helper'

class UncorrectableNameCheckTest < Test::Unit::TestCase
  class FirstNameError < NameError; end

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

  def test_message
    assert_not_match(/Did you mean\?/, @error.message)
  end
end