Abdulrazak-Alkl / activemessaging

Automatically exported from code.google.com/p/activemessaging
0 stars 0 forks source link

error in adapters/test.rb, find_message method #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Fixed in 102.

Original comment by anti.god...@gmail.com on 9 Jun 2007 at 12:26