Sha256: 95a31ce6c78198a054af2b7763672640088563a76fb69b276e85a89aca095523
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
module StackableFlash module TestHelpers # slash is shorthand for stackable_flash 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stackable_flash-0.1.1 | lib/stackable_flash/test_helpers.rb |