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
newjs-1.7.4 features/support/matchers.rb
newgem-1.5.0 rubygems_generators/install_cucumber/templates/features/support/matchers.rb
newgem-1.5.0 features/support/matchers.rb
newgem-1.5.1 rubygems_generators/install_cucumber/templates/features/support/matchers.rb
newgem-1.5.1 features/support/matchers.rb
newgem-1.5.2 features/support/matchers.rb
newgem-1.5.2 rubygems_generators/install_cucumber/templates/features/support/matchers.rb
choctop-0.10.0 features/support/matchers.rb
newgem-1.4.1 features/support/matchers.rb
newgem-1.4.1 rubygems_generators/install_cucumber/templates/features/support/matchers.rb
newgem-1.4.0 features/support/matchers.rb
postini-0.1.0 features/support/matchers.rb
tweettail-1.0.0 features/support/matchers.rb
tweettail-1.1.0 features/support/matchers.rb