Sha256: 74fdf25edfeaadb4be9dd9a7dcd85b2d9feebf4fc60dcd5d890a2514a24aec33

Contents?: true

Size: 504 Bytes

Versions: 256

Compression:

Stored size: 504 Bytes

Contents

RSpec::Matchers.define :include_method do |expected|
  match do |actual|
    actual.map { |m| m.to_s }.include?(expected.to_s)
  end
end

module RSpec
  module Matchers
    def fail
      raise_error(RSpec::Expectations::ExpectationNotMetError)
    end

    def fail_with(message)
      raise_error(RSpec::Expectations::ExpectationNotMetError, message)
    end

    def fail_matching(message)
      raise_error(RSpec::Expectations::ExpectationNotMetError, /#{Regexp.escape(message)}/)
    end
  end
end

Version data entries

256 entries across 155 versions & 27 rubygems

Version Path
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/matchers.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/matchers.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/rspec-expectations-2.12.1/spec/support/matchers.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/rspec-expectations-2.13.0/spec/support/matchers.rb
rspec-expectations-2.13.0 spec/support/matchers.rb
remq-0.0.4 vendor/bundle/gems/rspec-expectations-2.12.1/spec/support/matchers.rb
remq-0.0.3 vendor/bundle/gems/rspec-expectations-2.12.1/spec/support/matchers.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/rspec-expectations-2.12.1/spec/support/matchers.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
rspec-expectations-2.12.1 spec/support/matchers.rb
rspec-expectations-2.12.0 spec/support/matchers.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb