Sha256: 9ff50921a50b7dd54be24772db26b3a91a504538248468c8efbce076582c9ec5
Contents?: true
Size: 352 Bytes
Versions: 3
Compression:
Stored size: 352 Bytes
Contents
module StackableFlash module TestHelpers def flash_in_stack(slash_for_status, expecting) return true if slash_for_status == expecting if slash_for_status.kind_of?(Array) matches = slash_for_status.select do |to_check| to_check == expecting end return matches.length > 0 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stackable_flash-0.0.7 | lib/stackable_flash/test_helpers.rb |
stackable_flash-0.0.6 | lib/stackable_flash/test_helpers.rb |
stackable_flash-0.0.5 | lib/stackable_flash/test_helpers.rb |