Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Doc updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Oct 28, 2013
1 parent ed8898c commit d384b17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion features/command_line/order.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: --order (new in rspec-core-2.8)

Use the `--order` option to tell RSpec how to order the files, groups, and
examples. Options are `defined` and `rand`:
examples. Options are `defined` and `rand`.

`defined` is the default, which executes groups and examples in the
order they are defined as the spec files are loaded.
Expand Down
5 changes: 2 additions & 3 deletions lib/rspec/core/option_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def parser(options)
end

parser.on('--order TYPE[:SEED]', 'Run examples by the specified order type.',
' [default] files are ordered based on the underlying file',
' system\'s order',
' [rand] randomize the order of files, groups and examples',
' [defined] examples and groups are run in the order they are defined',
' [rand] randomize the order of groups and examples',
' [random] alias for rand',
' [random:SEED] e.g. --order random:123') do |o|
options[:order] = o
Expand Down

0 comments on commit d384b17

Please sign in to comment.