Sha256: 515f49004309a22a69b9c9e000d7f86d6ffc7f1bd8bd26839a08f1c13151d1d7

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 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 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

6 entries across 6 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.22 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.20 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.19 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.18 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.17 features/command_line/line_number_option.feature
rspec-core-2.0.0.beta.16 features/command_line/line_number_option.feature