Sha256: 2f702d1c4354ceee968f3a466bcf4cfbb4664811a8d839794a469fc08384d9d1

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

module RSpec
  # Matchers to help test RSpec matchers
  module Matchers
    def fail
      raise_error(RSpec::Expectations::ExpectationNotMetError)
    end

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

    def fail_matching(regex)
      raise_error(RSpec::Expectations::ExpectationNotMetError, regex)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-webservice_matchers-4.13 spec/failure_matchers.rb
rspec-webservice_matchers-4.12.2 spec/failure_matchers.rb
rspec-webservice_matchers-4.12.1 spec/failure_matchers.rb
rspec-webservice_matchers-4.12.0 spec/failure_matchers.rb
rspec-webservice_matchers-4.11.0 spec/failure_matchers.rb