Sha256: c1a0dcc2dcc9fa4b2cf0d9eb188e4387b9cce2870f4741034742e9fa242e9110

Contents?: true

Size: 1.22 KB

Versions: 7

Compression:

Stored size: 1.22 KB

Contents

Feature: line number appended to file path

  As an RSpec user
  I want to run one example identified by the 
    line number appended to the filepath
  
  Background:
    Given a file named "example_spec.rb" with:
      """
      describe "a group" do

        it "has a first example" do

        end
        
        it "has a second example" do

        end
        
      end
      """

  Scenario: two examples - both examples from the group declaration
    When I run "spec example_spec.rb:1 --format doc"
    Then the stdout should match "2 examples, 0 failures"
    And the stdout should match "has a second example"
    And the stdout should match "has a first example"

  Scenario: two examples - first example on declaration line
    When I run "spec example_spec.rb:3 --format doc"
    Then the stdout should match "1 example, 0 failures"
    And the stdout should match "has a first example"
    But the stdout should not match "has a second example"

  Scenario: two examples - second example on declaration line
    When I run "spec example_spec.rb:7 --format doc"
    Then the stdout should match "1 example, 0 failures"
    And the stdout should match "has a second example"
    But the stdout should not match "has a first example"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec-core-2.0.0.a9 features/command_line/line_number_appended_to_path.feature
rspec-core-2.0.0.a8 features/command_line/line_number_appended_to_path.feature
rspec-core-2.0.0.a7 features/command_line/line_number_appended_to_path.feature
rspec-core-2.0.0.a6 features/command_line/line_number_appended_to_path.feature
rspec-core-2.0.0.a5 features/command_line/line_number_appended_to_path.feature
rspec-core-2.0.0.a4 features/command_line/line_number_appended_to_path.feature
rspec-core-2.0.0.a3 features/command_line/line_number_appended_to_path.feature