Current state with 6 failures is considered to be better than the previous one

This commit is contained in:
2014-07-31 18:07:06 +02:00
parent 2e7be84a2e
commit c0c25673bf
9 changed files with 50 additions and 13 deletions
@@ -25,7 +25,7 @@ module Matchers
relevant_broadcasts = test_broadcaster.broadcasts.select{|b| b[:channel] =~ /^\/user\/#{@user_id}/ && b[:data][:event] == @message}
@failure_debug_content = "was #{relevant_broadcasts.map{|b| b[:data][:data].inspect}.join(" and ")}"
relevant_broadcasts.any?{|b| b[:data][:data] == @target_object}
relevant_broadcasts.any?{|b| @target_object === b[:data][:data]}
end
def message(msg)