File: rspec_rails.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 (24 lines) | stat: -rw-r--r-- 828 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@rspec @disable-bundler @rails6

Feature:
  Make sure that a fairly standard rspec-rails setup within a rails
  application works.

  See #873 for an example of how this might break.

  Background:
    Given I'm working on the project "rails/rspec_rails"

  Scenario: Running bundle exec rspec produces a coverage report
    Given I install dependencies
    When I open the coverage report generated with `bundle exec rspec`
    Then I should see the groups:
      | name        | coverage | files |
      | All Files   | 36.36%   | 5     |
      | Controllers | 0.0%     | 1     |
      | Channels    | 100.0%   | 0     |
      | Models      | 50.0%    | 2     |
      | Mailers     | 100.0%   | 0     |
      | Helpers     | 100.0%   | 1     |
      | Jobs        | 0.0%     | 1     |
      | Libraries   | 100.0%   | 0     |