Current state with 6 failures is considered to be better than the previous one
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user