Permalink
Browse files

minor doc fixes

- Closes #298.
  • Loading branch information...
1 parent 0f9deff commit c389b0c4dcbafa34f3f5b0f5b1cbc7411fd86f15 @joliss joliss committed with dchelimsky Feb 3, 2011
@@ -1,8 +1,8 @@
-Feature: --line option
+Feature: --line_number option
- To run a single example or group, you can use the --line option:
+ To run a single example or group, you can use the --line_number option:
- rspec path/to/example_spec.rb --line 37
+ rspec path/to/example_spec.rb --line_number 37
Scenario: standard examples
Given a file named "example_spec.rb" with:
@@ -21,7 +21,7 @@ Feature: --line option
end
"""
- When I run "rspec example_spec.rb --line 5 --format doc"
+ When I run "rspec example_spec.rb --line_number 5 --format doc"
Then the examples should all pass
Then the output should contain "should be > 8"
But the output should not contain "should be < 10"
@@ -39,7 +39,7 @@ Feature: --line option
end
"""
- When I run "rspec example_spec.rb --line 5 --format doc"
+ When I run "rspec example_spec.rb --line_number 5 --format doc"
Then the examples should all pass
Then the output should contain "should be > 8"
But the output should not contain "should be < 10"
@@ -1,8 +1,8 @@
Feature: fail fast
- Use the fail_fast option to tell RSpec to abort the run on first failure.
+ Use the fail_fast option to tell RSpec to abort the run on first failure:
- RSpec.configure {|c| c.fail_fast = true}
+ RSpec.configure {|c| c.fail_fast = true}
Background:
Given a file named "spec/spec_helper.rb" with:
@@ -5,8 +5,8 @@ Feature: configure expectation framework
* rspec/expectations (explicitly)
* stdlib assertions
- ** test/unit assertions in ruby 1.8
- ** minitest assertions in ruby 1.9
+ * test/unit assertions in ruby 1.8
+ * minitest assertions in ruby 1.9
* rspec/expecations _and_ stlib assertions
Scenario: configure rspec-expectations (explicitly)

0 comments on commit c389b0c

Please sign in to comment.