Sha256: c96fb32bba3b8813b338a6af9417f7b413be683d7f8dec4608815ff147aa0e23
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
Feature: --line option To run a single example or group, you can use the --line option: rspec path/to/example_spec.rb --line 37 Scenario: standard examples Given a file named "example_spec.rb" with: """ require "rspec/expectations" describe 9 do it "should be > 8" do 9.should be > 8 end it "should be < 10" do 9.should be < 10 end end """ When I run "rspec example_spec.rb --line 5 --format doc" Then the output should contain "1 example, 0 failures" Then the output should contain "should be > 8" But the stdout should not contain "should be < 10" Scenario: one liner Given a file named "example_spec.rb" with: """ require "rspec/expectations" describe 9 do it { should be > 8 } it { should be < 10 } end """ When I run "rspec example_spec.rb --line 5 --format doc" Then the output should contain "1 example, 0 failures" Then the output should contain "should be > 8" But the stdout should not contain "should be < 10"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-core-2.4.0 | features/command_line/line_number_option.feature |