Created
April 2, 2009 07:29
-
-
Save mpen/89078 to your computer and use it in GitHub Desktop.
Rails Application Templates for rspec-rails 1.2.0
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
# Application Templates for rspec-rails | |
# Ruby on Rails : 2.3.2 | |
# rspec-rails : 1.2.0 | |
# http://wiki.github.com/dchelimsky/rspec/configgem-for-rails | |
# use sudo | |
use_sudo = false | |
# Remove the old rspec.rake file | |
run "rm lib/tasks/rspec.rake" | |
# Configure the gems | |
gem "rspec", :lib => false, :version => ">= 1.2.0", :env => "test" | |
gem "rspec-rails", :lib => false, :version => ">= 1.2.0", :env => "test" | |
# Bundle the gems | |
if yes?("rake gems:unpack?") | |
rake "gems:unpack", :env => "test", :sudo => use_sudo | |
rake "gems:unpack:dependencies", :env => "test", :sudo => use_sudo | |
end | |
# Regenerate the rspec files | |
generate :rspec | |
# autospec | |
environment "config.cache_classes = false", :env => "test" | |
append_file "spec/spec.opts", "--drb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment