-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all rspec config to spec_helper
Inspired by: https://stackoverflow.com/a/7364289 We can also read more about the config options over here: https://relishapp.com/rspec/rspec-core/v/3-10/docs/configuration
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
--color | ||
--profile | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
RSpec.configure do |config| | ||
# Use color in STDOUT | ||
config.color = true | ||
# Use color not only in STDOUT but also in pagers and files | ||
config.tty = true | ||
|
||
# Display 10 slowest tests after a test run | ||
config.profile_examples = true | ||
|
||
# Use the specified formatter | ||
# :documentation, :progress, :html, :json, CustomFormatterClass | ||
config.formatter = :progress | ||
|
||
# Specify order for spec to be run in | ||
# TODO: make sure all specs pass when set to :rand | ||
# config.order = :rand | ||
end |