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
fisheye-crucible-0.0.2 features/support/matchers.rb
fisheye-crucible-0.0.1 features/support/matchers.rb
tailor-0.1.1 features/support/matchers.rb
tailor-0.1.0 features/support/matchers.rb
billymeltdown-choctop-0.11.0.8 features/support/matchers.rb
choctop-0.12.1 features/support/matchers.rb
choctop-0.12.0 features/support/matchers.rb
picasa_plucker-1.0.0 features/support/matchers.rb
rubigen-1.5.5 features/support/matchers.rb
subprocess-0.1.6 features/support/matchers.rb
billymeltdown-choctop-0.11.0.7 features/support/matchers.rb
billymeltdown-choctop-0.11.0.6 features/support/matchers.rb
system-builder-0.0.10 features/support/matchers.rb
system-builder-0.0.9 features/support/matchers.rb
indentation-0.0.3 features/support/matchers.rb
indentation-0.0.2 features/support/matchers.rb
indentation-0.0.1 features/support/matchers.rb
billymeltdown-choctop-0.11.0.5 features/support/matchers.rb
billymeltdown-choctop-0.11.0.4 features/support/matchers.rb
culerity-0.2.10 features/support/matchers.rb