Created
July 20, 2012 02:51
-
-
Save jaredbeck/3148368 to your computer and use it in GitHub Desktop.
Disable rspec verbosity
This file contains hidden or 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
# Turn off rspec verbosity, so that the | |
# resultant rspec command, and all the | |
# spec names, are not echoed to stdout. | |
# See http://bit.ly/MoOoB3 -Jared 2012-07-19 | |
if defined? RSpec | |
task(:spec).clear | |
RSpec::Core::RakeTask.new(:spec) do |t| | |
t.verbose = false | |
end | |
end |
To preserve the dependencies ...
Thanks Daniel!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has a critical flaw: any dependencies of the task are lost when it is cleared. To preserve the dependencies (such as setting up the DB in Rails), use: