Sha256: ac1a49e67c02608350dadb8ea16650247dc558936297d245580f3d6a49744b6a

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

require "helper"
require "twirl/instrumenters/noop"

class NoopInstrumenterTest < Minitest::Test
  def test_instrument
    yielded = false
    Twirl::Instrumenters::Noop.instrument(:foo) { yielded = true }
    assert yielded
  end

  def test_instrument_with_payload
    yielded = false
    Twirl::Instrumenters::Noop.instrument(:foo, pay: :load) { yielded = true }
    assert yielded
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twirl-0.2.0 test/instrumenters/noop_test.rb
twirl-0.1.0 test/instrumenters/noop_test.rb