File: rspec_fails_on_initialization.feature

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 (17 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@rspec
Feature:

  Running specs with a failing rspec setup

  Background:
    Given I'm working on the project "faked_project"

  Scenario: Fail if rspec fails before starting its tests
    Given a file named "spec/spec_helper.rb" with:
      """
      require 'simplecov'
      SimpleCov.start
      raise "some exception in the class loading before the tests start"
      """
    When I run `bundle exec rspec spec`
    Then the exit status should not be 0