blob: 3ff081c7d2b37da64bd65abef4fbd67f228fdbf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Given /^the message "([^"]*)" is sent$/ do |content|
@sender.send Qpid::Messaging::Message.new :content => "#{content}"
end
Then /^sending the message "([^"]*)" should raise an error$/ do |content|
lambda {
steps %Q{
Then sending the message "#{content}" succeeds
}
}.should raise_error
end
Then /^sending the message "([^"]*)" succeeds$/ do |content|
@sender.send Qpid::Messaging::Message.new :content => "#{content}"
end
|