line_number_option_with_example_with_no_name.feature

features/command_line/line_number_option_with_example_with_no_name.feature
Last Update: Sun Sep 20 09:59:11 -0500 2009

Feature: Spec and test together

As an RSpec user
I want to run one example identified by the line number

Background:
  Given a file named "example.rb" with:
    """
    describe 9 do

      it { should be > 8 }

      it { should be < 10 }

    end
    """

Scenario: two examples - first example on declaration line
  When I run "spec example.rb:3 --format nested"
  Then the stdout should include "1 example, 0 failures"
  Then the stdout should include "should be > 8"
  But the stdout should not match "should be < 10"