Skip to content

Instantly share code, notes, and snippets.

@mpen
Created April 2, 2009 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpen/89078 to your computer and use it in GitHub Desktop.
Save mpen/89078 to your computer and use it in GitHub Desktop.
Rails Application Templates for rspec-rails 1.2.0
# 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