Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
aemadrid committed Mar 24, 2015
1 parent 7e475c2 commit bae1de3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
Empty file added .rspec
Empty file.
13 changes: 13 additions & 0 deletions spec/integration/multiple_consumer_spec.rb
@@ -0,0 +1,13 @@
describe 'simple consumers', integration: true do
let(:consumer) { SimpleConsumer }

it 'receives multiple messages' do
(1..4).each { |nr| Tiki::Torch.publish consumer.topic, "a#{nr}" }
sleep 1

# Get all messages
expect($messages.payloads).to eq %w{ a1 a2 a3 a4 }
# All different threads
expect($messages.thread_ids.uniq.size).to eq 4
end
end
Empty file.
Empty file added spec/spec_helper.rb
Empty file.
Empty file added spec/support/consumers.rb
Empty file.
Empty file added spec/support/helpers.rb
Empty file.

0 comments on commit bae1de3

Please sign in to comment.