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

Version Path
rspec-instructure-1.3.3 features/runner/specify_line_number.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/features/runner/specify_line_number.feature
rspec-1.3.2 features/runner/specify_line_number.feature
rspec-1.3.1 features/runner/specify_line_number.feature
rspec-1.3.1.rc features/runner/specify_line_number.feature
rspec-1.3.0 features/runner/specify_line_number.feature
hubbub-0.0.11 lib/vendor/plugins/rspec/features/runner/specify_line_number.feature
hubbub-0.0.10 lib/vendor/plugins/rspec/features/runner/specify_line_number.feature
hubbub-0.0.9 lib/vendor/plugins/rspec/features/runner/specify_line_number.feature
hubbub-0.0.8 lib/vendor/plugins/rspec/features/runner/specify_line_number.feature
hubbub-0.0.6 lib/vendor/plugins/rspec/features/runner/specify_line_number.feature
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/features/runner/specify_line_number.feature
media-path-0.1.2 vendor/rspec/features/runner/specify_line_number.feature
simple-templater-0.0.1.3 vendor/rspec/features/runner/specify_line_number.feature
pupu-0.0.2.pre vendor/rspec/features/runner/specify_line_number.feature
media-path-0.1.1.pre vendor/rspec/features/runner/specify_line_number.feature
simple-templater-0.0.1.2 vendor/rspec/features/runner/specify_line_number.feature
media-path-0.1.1 vendor/rspec/features/runner/specify_line_number.feature
simple-templater-0.0.1.1 vendor/rspec/features/runner/specify_line_number.feature
pupu-0.0.2 vendor/rspec/features/runner/specify_line_number.feature