Sha256: 76c6542921f8153a515283ac7b042fdb149f87a9b4448f4426f9b992f268a195
Contents?: true
Size: 1.15 KB
Versions: 6
Compression:
Stored size: 1.15 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 "rspec example_spec.rb:1 --format doc" Then I should see "2 examples, 0 failures" And I should see "has a second example" And I should see "has a first example" Scenario: two examples - first example on declaration line When I run "rspec example_spec.rb:3 --format doc" Then I should see "1 example, 0 failures" And I should see "has a first example" But the stdout should not contain "has a second example" Scenario: two examples - second example on declaration line When I run "rspec example_spec.rb:7 --format doc" Then I should see "1 example, 0 failures" And I should see "has a second example" But the stdout should not contain "has a first example"
Version data entries
6 entries across 6 versions & 1 rubygems