Sha256: 270239426c0499380a70f8872046968ce1078a26cc12bbb4a5bf969a287522c0
Contents?: true
Size: 1 KB
Versions: 32
Compression:
Stored size: 1 KB
Contents
Feature: run specific examples by line number In order to run a single example from command line RSpec allows you to specify the line number of the example(s) to run Scenario: --line syntax on single example Given a file named "example_spec.rb" with: """ describe "an example" do it "has not yet been implemented" it "has been implemented" do true end end """ When I run "spec example_spec.rb --line 2" Then the stdout should include "1 example, 0 failures, 1 pending" And the stdout should include "example_spec.rb:2" Scenario: colon line syntax on single example Given a file named "example_spec.rb" with: """ describe "an example" do it "has not yet been implemented" it "has been implemented" do true end end """ When I run "spec example_spec.rb:2" Then the stdout should include "1 example, 0 failures, 1 pending" And the stdout should include "example_spec.rb:2"
Version data entries
32 entries across 32 versions & 11 rubygems