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
dxruby_rp5-0.0.4 spec/vendor/rspec-expectations-2.14.4/spec/support/matchers.rb
rspec-expectations-2.99.1 spec/support/matchers.rb
rspec-expectations-2.99.0 spec/support/matchers.rb
rspec-expectations-2.99.0.rc1 spec/support/matchers.rb
rspec-expectations-3.0.0.beta2 spec/support/matchers.rb
rspec-expectations-2.99.0.beta2 spec/support/matchers.rb
rspec-expectations-2.14.5 spec/support/matchers.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb
dxruby_rp5-0.0.3 spec/vendor/rspec-expectations-2.14.4/spec/support/matchers.rb
tuktuk-rails-0.0.10 vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb
tuktuk-rails-0.0.9 vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb
tuktuk-rails-0.0.8 vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb
tuktuk-rails-0.0.7 vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb
dxruby_rp5-0.0.2 spec/vendor/rspec-expectations-2.14.4/spec/support/matchers.rb
dxruby_rp5-0.0.1 spec/vendor/rspec-expectations-2.14.4/spec/support/matchers.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb
rspec-expectations-3.0.0.beta1 spec/support/matchers.rb
rspec-expectations-2.99.0.beta1 spec/support/matchers.rb
rspec-expectations-2.14.4 spec/support/matchers.rb