CHips L MINI SHELL

CHips L pro

Current Path : /opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/test/
Upload File :
Current File : //opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/test/verbose_formatter_test.rb

require 'test_helper'

class VerboseFormatterTest < Minitest::Test
  def setup
    require 'did_you_mean/verbose'

    does_exist = does_exist = nil
    @error = assert_raises(NameError){ doesnt_exist }
  end

  def teardown
    DidYouMean.formatter = DidYouMean::PlainFormatter.new
  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

Copyright 2K16 - 2K18 Indonesian Hacker Rulez