Sha256: 37f21724552be44e7067e9fa8c36a07d7b25e6bf3b8818aad07567bc8b46c22c
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
Then /^the broker should have received an? "([^"]*)" frame$/ do |command| Then "the broker should have received a \"#{command}\" frame with headers", table(%{ | header-name | header-value | }) end Then /^the broker should have received an? "([^"]*)" frame with headers$/ do |command, table| headers = table_to_headers table @broker.session.received_frames.any? do |f| f.command == command && headers.all? { |(k,v)| headers[k] == f[k] } end.should be_true end Then /^the client should have received an? "([^"]*)" frame with headers$/ do |command, table| headers = table_to_headers table @received_frames.any? do |f| f.command == command && headers.all? { |(k,v)| headers[k] == f[k] } end.should be_true end When /^the broker sends a "([^"]*)" frame with headers$/ do |command, table| headers = table_to_headers table @broker.session.send_frame command, headers end When /^the frame exchange is completed$/ do @connection.disconnect(:receipt => 'TERMINATE_POLITELY_12345') @connection.stop @broker.stop end When /^the frame exchange is completed without client disconnect$/ do @connection.stop @broker.stop end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stomper-2.0.0 | features/steps/frame_transmission_steps.rb |