File: failures.rb

package info (click to toggle)
ruby-webmock 3.26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: ruby: 12,859; makefile: 6
file content (9 lines) | stat: -rw-r--r-- 200 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
module Failures
  def fail()
  raise_error(RSpec::Expectations::ExpectationNotMetError)
  end

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