Permalink
Browse files

Update the cucumber for configuration files for .rspec-local

this is so we get some docs on relish for this.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  • Loading branch information...
samphippen committed Apr 7, 2013
1 parent dc45939 commit 4770e3e1daefa4e505000bc49ff55e55106c2b00
Showing with 9 additions and 4 deletions.
  1. +2 −0 Changelog.md
  2. +7 −4 features/configuration/read_options_from_file.feature
View
@@ -18,6 +18,8 @@ Enhancements
(Gabor Garami).
* Give a better error message when let and subject are called without a block.
(Sam Phippen).
+* List the precedence of `.rspec-local` in the configuration documentation
+ (Sam Phippen)
Bug fixes
@@ -3,11 +3,14 @@ Feature: read command line configuration options from files
RSpec reads command line configuration options from files in two different
locations:
- Local: "./.rspec" (i.e. in the project's root directory)
- Global: "~/.rspec" (i.e. in the user's home directory)
+ Local: `./.rspec-local` (i.e. in the project's root directory, can be gitignored)
+ Project: `./.rspec` (i.e. in the project's root directory, usually checked into the project)
+ Global: `~/.rspec` (i.e. in the user's home directory)
- Options declared in the local file override those in the global file, while
- those declared in RSpec.configure will override any ".rspec" file.
+ Configuration options are loaded from `~/.rspec`, `.rspec`,
+ `.rspec-local`, command line switches, and the `SPEC_OPTS` environment
+ variable (listed in lowest to highest precedence; for example, an option
+ in `~/.rspec` can be overridden by an option in `.rspec-local`).
Scenario: color set in .rspec
Given a file named ".rspec" with:

0 comments on commit 4770e3e

Please sign in to comment.