Advertisement
franklinyu

Rails RSpec configuration

Mar 29th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. # Each line can be either in `~/.rspec` or `./.rspec`.
  2. # DOC_URL = https://relishapp.com/rspec/rspec-core/docs
  3. # Order of overriding can be found in
  4. #     $(DOC_URL)/configuration/read-command-line-configuration-options-from-files
  5.  
  6. ##########
  7. # global #
  8. ##########
  9.  
  10. --color
  11. # thanks http://stackoverflow.com/a/8292088
  12.  
  13. --format documentation
  14. # with shorthand `-fd`. See
  15. #     $(DOC_URL)/command-line/format-option
  16.  
  17. #########
  18. # local #
  19. #########
  20.  
  21. --require rails_helper
  22. # with shorthand `-r rails_helper`,
  23. # same as `require 'rails_helper'` in RSpec file. See
  24. #     $(DOC_URL)/command-line/require-option
  25.  
  26. --tty
  27. # Enable colored text to go through pipe.
  28. # (Treat output as a terminal instead of a pipe.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement