File: rspec_bad.rb

package info (click to toggle)
ruby-simplecov 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: ruby: 5,550; makefile: 10
file content (10 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "..", "..", "lib"))
require "simplecov"
require "rspec"
SimpleCov.print_error_status = ENV["PRINT_ERROR_STATUS"] == "true" if ENV.key? "PRINT_ERROR_STATUS"
SimpleCov.start
describe "exit status" do
  it "should exit with a non-zero exit status when assertion fails" do
    expect(1).to eq(2)
  end
end