Sha256: f65600c3f700660f98a0a22a64f813e905a91a33546b937f5cb2093712172886

Contents?: true

Size: 445 Bytes

Versions: 9

Compression:

Stored size: 445 Bytes

Contents

module Proletariat
  module Testing
    # Internal: Defines a quantity of messages you expect to receive on a set
    #         of topics.
    class Expectation < Struct.new(:topics, :quantity)
      # Public: Builds a new duplicate of current instance with different
      #         topics.
      #
      # Returns a new instance of Expectation.
      def on_topic(*topics)
        Expectation.new(topics, quantity)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
proletariat-0.1.2 lib/proletariat/testing/expectation.rb
proletariat-0.1.1 lib/proletariat/testing/expectation.rb
proletariat-0.1.0 lib/proletariat/testing/expectation.rb
proletariat-0.0.6 lib/proletariat/testing/expectation.rb
proletariat-0.0.5 lib/proletariat/testing/expectation.rb
proletariat-0.0.4 lib/proletariat/testing/expectation.rb
proletariat-0.0.3 lib/proletariat/testing/expectation.rb
proletariat-0.0.2 lib/proletariat/testing/expectation.rb
proletariat-0.0.1 lib/proletariat/testing/expectation.rb