Sha256: 8bdb7365d2d073f34e676932bec13801bbe527e5c6efe5e6c7c3de2469461ca2

Contents?: true

Size: 453 Bytes

Versions: 4

Compression:

Stored size: 453 Bytes

Contents

require 'spec_helper'

describe Freddy::Consumer do
  let(:freddy) { Freddy.build(logger, config) }

  let(:destination) { random_destination }
  let(:payload)     { {pay: 'load'} }

  let(:consumer) { freddy.consumer }

  after { freddy.close }

  it "doesn't call passed block without any messages" do
    consumer.respond_to destination do
      @message_received = true
    end
    default_sleep

    expect(@message_received).to be_falsy
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
freddy-jruby-0.4.9 spec/freddy/consumer_spec.rb
freddy-0.4.9 spec/freddy/consumer_spec.rb
freddy-0.4.8 spec/freddy/consumer_spec.rb
freddy-0.4.7 spec/freddy/consumer_spec.rb