diff options
Diffstat (limited to 'vendor/gems/rspec-1.3.1/features/runner')
-rw-r--r-- | vendor/gems/rspec-1.3.1/features/runner/specify_line_number.feature | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/gems/rspec-1.3.1/features/runner/specify_line_number.feature b/vendor/gems/rspec-1.3.1/features/runner/specify_line_number.feature new file mode 100644 index 000000000..bf44f2c09 --- /dev/null +++ b/vendor/gems/rspec-1.3.1/features/runner/specify_line_number.feature @@ -0,0 +1,32 @@ +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" |