The problem is found in revision 101.
in adapters/test.rb, find_message method is defined as following:
def find_message queue_name, body
all_messages.find do |m|
m.headers['destination'] == queue_name && m.body = body
end
end
Apparently "m.body=body", should be "m.body==body" and
"m.body==body.to_s" will make it more flexible,especially when the body of
the message is the id. I cam simply use:
assert_message :***_processor, user.id
which will give the same result as:
assert_message :***_processor, "#{user.id}"
Original issue reported on code.google.com by snowzhan...@gmail.com on 7 Jun 2007 at 2:04
Original issue reported on code.google.com by
snowzhan...@gmail.com
on 7 Jun 2007 at 2:04