Last active
September 28, 2015 19:59
-
-
Save no-itsbackpack/ab854cb29fb379c33609 to your computer and use it in GitHub Desktop.
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
#test.rake | |
desc 'example rake test that only runs in dev and test' | |
namespace :test do | |
task :do_something do | |
if Rails.env.development? || Rails.env.test? | |
"do your stuff here" | |
end | |
end | |
end | |
# ./Rakefile | |
task test: %w(test:do_something) | |
task default: [:test] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment