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
engineyard-dns-1.0.0 features/support/matchers.rb
engineyard-dns-0.5.0 features/support/matchers.rb
engineyard-dns-0.4.0 features/support/matchers.rb
engineyard-dnsimple-0.3.0 features/support/matchers.rb
engineyard-dnsimple-0.2.0 features/support/matchers.rb
engineyard-dnsimple-0.1.2 features/support/matchers.rb
engineyard-dnsimple-0.1.1 features/support/matchers.rb
engineyard-dnsimple-0.1.0 features/support/matchers.rb
codefumes-0.4.1 features/support/matchers.rb
system-builder-0.0.21 features/support/matchers.rb
system-builder-0.0.20 features/support/matchers.rb
system-builder-0.0.19 features/support/matchers.rb
rubigen-1.5.6 features/support/matchers.rb
culerity-0.2.15 features/support/matchers.rb
culerity-0.2.14 features/support/matchers.rb
culerity-0.2.13 features/support/matchers.rb
tailor-0.1.3 features/support/matchers.rb
carps-0.3.2 features/support/matchers.rb
carps-0.3.1 features/support/matchers.rb
carps-0.3.0 features/support/matchers.rb