Created
November 15, 2013 20:42
-
-
Save myronmarston/7491219 to your computer and use it in GitHub Desktop.
In reply to: https://twitter.com/avdi/status/401429567250108416 Curious: how do you deal with app Rakefiles that you use in production but without the testing gems being available in prod? Gists welcome.
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
begin | |
require 'rspec/core/rake_task' | |
rspec_loaded = true | |
rescue LoadError | |
rspec_loaded = false | |
puts "\nThe spec tasks were not defined since rspec could not be loaded.\n\n" | |
end | |
if rspec_loaded | |
# define the tasks that depend on RSpec | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment