Sha256: 5ddae62441a16772cced6d4cf6af2664177d356b8cce59bc9f6248d1f1df7bb8

Contents?: true

Size: 367 Bytes

Versions: 134

Compression:

Stored size: 367 Bytes

Contents

module Matchers
  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
end

World(Matchers)

Version data entries

134 entries across 129 versions & 34 rubygems

Version Path
albanpeignier-system-builder-0.0.2 features/support/matchers.rb
dimus-taxamatch_rb-0.1.1 features/support/matchers.rb
dimus-taxamatch_rb-0.1.2 features/support/matchers.rb
drcapulet-shorty-0.1.0 features/support/matchers.rb
drcapulet-shorty-0.1.1 features/support/matchers.rb
drnic-culerity-0.2.1 features/support/matchers.rb
drnic-culerity-0.2.2 features/support/matchers.rb
kennethkalmer-postini-0.1.0 features/support/matchers.rb
langalex-culerity-0.2.2 features/support/matchers.rb
langalex-culerity-0.2.3 features/support/matchers.rb
parolkar-obey_robots_dot_txt-1.0.0 features/support/matchers.rb
srizzo-gemtest-0.0.2 features/support/matchers.rb
rubigen-1.5.8 features/support/matchers.rb
system-builder-0.0.26 features/support/matchers.rb
rubigen-1.5.7 features/support/matchers.rb
engineyard-dns-1.1.0 features/support/matchers.rb
system-builder-0.0.23 features/support/matchers.rb
tailor-0.1.5 features/support/matchers.rb
tailor-0.1.4 features/support/matchers.rb
system-builder-0.0.22 features/support/matchers.rb