Sha256: 6d25b4e105c946a39915a62b8832322e89b3aaf1bfd2fc830fa31caa208fc0dd

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

require "test_helper"

# https://github.com/fnando/signal/issues/2
class ConstantLookupTest < Minitest::Test
  let(:callable) { Callable.new(:on_success) }

  test "triggers event" do
    emitter = Emitter.new
    emitter.on(:success, &callable)
    callable.expect(:on_success, nil, [])
    emitter.call

    assert callable.verify
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
signal-1.1.0 test/signal/issues_test.rb