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
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-expectations-2.14.5/spec/support/matchers.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-expectations-2.13.0/spec/support/matchers.rb
rspec-expectations-2.99.2 spec/support/matchers.rb