File: rails_stats.feature

package info (click to toggle)
ruby-rspec-rails 8.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,820 kB
  • sloc: ruby: 10,902; sh: 199; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 533 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Feature: Rails stats includes spec directories

  Scenario: rails stats finds spec directories when run from a different working directory
    Given rails 8 or later is available
    Given a file named "spec/models/widget_spec.rb" with:
      """ruby
      require "rails_helper"

      RSpec.describe Widget, type: :model do
        it "works" do
          expect(true).to be true
        end
      end
      """
    When I run `bash -c "APP=$PWD && cd /tmp && $APP/bin/rails stats"`
    Then the output should contain "Model spec"