Sha256: a27b808f4f78d9c6c18f4521c02af65e755220e59f2f1f049615b50ededeebeb

Contents?: true

Size: 984 Bytes

Versions: 3

Compression:

Stored size: 984 Bytes

Contents

module BeanCounter::SpecMatchers

  # Creates a new BeanCounter::EnqueuedExpectation with +expected+ stored for
  # later use when matching. Most of the time the value provided for +expected+
  # will be ignored, the only exception is when +expected+ is given a block.
  # When a block is provided for +expected+, only jobs enqueued during the
  # execution of the block will be considered when matching.
  #
  # See BeanCounter::EnqueuedExpectation for additional information and usage
  # patterns.
  def have_enqueued(expected)
    BeanCounter::EnqueuedExpectation.new(expected)
  end

  # Creates a new BeanCounter::TubeExpectation with +expected+ stored for
  # later use when matching. However, +expected+ is never used when matching.
  # Instead, all tubes are matched against until a match is found.
  #
  # See BeanCounter::TubeExpectation for additional information and usage
  # patterns.
  def have_tube(expected)
    BeanCounter::TubeExpectation.new(expected)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bean_counter-0.0.3 lib/bean_counter/spec_matchers.rb
bean_counter-0.0.2 lib/bean_counter/spec_matchers.rb
bean_counter-0.0.1 lib/bean_counter/spec_matchers.rb