Sha256: 711e22940147e5550343c1d25e46e75851309e384c03d33aedfd5b1654b84088

Contents?: true

Size: 1.03 KB

Versions: 7

Compression:

Stored size: 1.03 KB

Contents

Feature: line number option

  As an RSpec user
  I want to run one example identified by the line number
  
  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 I should see "1 example, 0 failures"
    Then I should see "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 I should see "1 example, 0 failures"
    Then I should see "should be > 8"
    But the stdout should not contain "should be < 10"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.15 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.14 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.13 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.12 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.11 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.10 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.9 features/command_line/line_number_option.feature