Skip to content

Instantly share code, notes, and snippets.

@phlco
Created October 21, 2013 13:16
Show Gist options
  • Select an option

  • Save phlco/7083724 to your computer and use it in GitHub Desktop.

Select an option

Save phlco/7083724 to your computer and use it in GitHub Desktop.
spec_helper.rb
# Configure Rspec to print nice
RSpec.configure do |config|
# Use color in STDOUT
config.color_enabled = true
# Use color not only in STDOUT but also in pagers and files
config.tty = true
# Use the specified formatter
config.formatter = :documentation # :progress, :html, :textmate
# immediately stop running upon first failure
config.fail_fast = true
end
@phlco
Copy link
Author

phlco commented Oct 21, 2013

You can also add an .rspec file to your root directory and include the following:

--color
--format documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment