Sha256: 9d5b11df36e79ff458c110aa7d7ff11689f1725c81624e696092b134a2161fd2

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

module Matchers
  def contain(expected)
    Spec::Matchers::SimpleMatcher.new("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

4 entries across 4 versions & 1 rubygems

Version Path
hudson-0.2.7 features/support/matchers.rb
hudson-0.2.6 features/support/matchers.rb
hudson-0.2.5.pre3 features/support/matchers.rb
hudson-0.2.5.pre2 features/support/matchers.rb