module Matchers

Public Instance Methods

contain(expected) click to toggle source
# File features/support/matchers.rb, line 2
def contain(expected)
  simple_matcher("contain #{expected.inspect}") do |given, matcher|
    matcher.failure_message = "expected #{given.inspect} to contain #{expected.inspect}"
    matcher.negative_failure_message = "expected #{given.inspect} not to contain #{expected.inspect}"
    given.index expected
  end
end