Sha256: b1e6d77594a8a13980cff286e2347c51b8350768751aeeb202ceb8ff1d16eec5

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

require_relative "test_helper"

class TestShrug < Minitest::Test

  def setup
    Robustly.env = "production"
  end

  def test_shrug
    mock = MiniTest::Mock.new
    mock.expect :report_exception, nil, [NoMethodError]
    Robustly.report_exception_method = proc {|e| mock.report_exception(e) }
    @foo.baz
    assert mock.verify
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shrug-0.0.4 test/shrug_test.rb
shrug-0.0.3 test/shrug_test.rb
shrug-0.0.2 test/shrug_test.rb