features/support/message_table_matcher.rb in message-driver-0.4.0 vs features/support/message_table_matcher.rb in message-driver-0.5.0
- old
+ new
@@ -11,13 +11,14 @@
end
end
match do |messages|
@actual = messages_to_hash(messages)
- @actual == expected_hash
+ expect(@actual).to match_array(expected_hash)
+ true
end
- failure_message_for_should do |_|
+ failure_message do |_|
"expected #{expected_hash} and got #{@actual}"
end
description do
"contain messages #{expected_hash}"