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
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.11.3/spec/support/matchers.rb
rspec-expectations-2.14.3 spec/support/matchers.rb
clickable_link-0.0.2 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.14.2/spec/support/matchers.rb
syllable_counter-1.0.0 vendor/bundle/gems/rspec-expectations-2.14.2/spec/support/matchers.rb
rspec-expectations-2.14.2 spec/support/matchers.rb
rspec-expectations-2.14.1 spec/support/matchers.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.11.3/spec/support/matchers.rb
rspec-expectations-2.14.0 spec/support/matchers.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/matchers.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/matchers.rb
rspec-expectations-2.14.0.rc1 spec/support/matchers.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.10.0/spec/support/matchers.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.9.0/spec/support/matchers.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.9.1/spec/support/matchers.rb