Method: Screenplay::TestActor#test_in
- Defined in:
- lib/screenplay/actors/test.rb
#test_in(a, b) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/screenplay/actors/test.rb', line 65 def test_in(a, b) if (b.is_a?(String)) b.index(a) != nil elsif (b.is_a?(Array)) b.to_a.include?(a) elsif (b.is_a?(Hash)) b.include?(a.to_sym) else raise UnsupportedTypeTestException.new(:in, b) end end |