Sha256: 756ae06c9a7ea59d96e58f8a5ab2e8a8a0679a8dc9d53909000dc2126ce1f022

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

require 'test_helper'

class VerboseFormatterTest < Minitest::Test
  def setup
    does_exist = does_exist = nil
    @error = assert_raises(NameError){ doesnt_exist }
  end

  def test_message
    assert_equal <<~MESSAGE.chomp, @error.message
      undefined local variable or method `doesnt_exist' for #{method(:to_s).super_method.call}

          Did you mean? does_exist
       
    MESSAGE
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
did_you_mean-1.1.2 test/verbose_formatter_test.rb
ruby-compiler-0.1.1 vendor/ruby/gems/did_you_mean-1.1.0/test/verbose_formatter_test.rb
did_you_mean-1.1.0 test/verbose_formatter_test.rb
did_you_mean-1.0.0 test/verbose_formatter_test.rb