fix #897. The dependency on rspec added to environment.rb. Rake always loads the rspec task from /lib/tasks, so the gem is required for all environments.

this is ugly :-(
This commit is contained in:
Reinier Balt 2009-05-13 22:10:15 +02:00
parent f2a1f86274
commit 0a23405d4b
2 changed files with 5 additions and 1 deletions

View file

@ -23,6 +23,9 @@ Rails::Initializer.run do |config|
config.gem "highline"
config.gem "RedCloth"
# Need to do rspec here and not in test.rb. Needed for rake to work which loads
# the rspec.task file
config.gem "rspec", :lib => false, :version => ">=1.2.2"
config.action_controller.use_accept_header = true

View file

@ -51,7 +51,8 @@ config.gem "ZenTest"
config.gem "hpricot"
config.gem "hoe"
config.gem "rspec", :lib => false, :version => ">=1.2.2"
# config.gem for rspec is in environment.rb. Needed for rake to work which loads
# the rspec.task file
config.gem "rspec-rails", :lib => false, :version => ">=1.2.2"
config.gem "webrat", :lib => false, :version => ">=0.4.3"
config.gem "cucumber", :lib => false, :version => ">=0.2.2"