Ok - I have created a brand new Rails 2.3.14 app, made it bundler
aware (as of http://gembundler.com/rails23.html) and installed one
plugin.
This reproduces the problem described above.
Here's the app: (it does nothing, the only change is the use of the
"history" DSL keyword in application controll
Ha - I think I found the problem:
In my Gemfile I had:
group :test, :cucumber do # , :development (till we work out why
plugins don't load with rspec)
gem 'rspec-rails', '~> 1.3.4' , :require => 'spec/rails'
gem 'rspec', '~> 1.3.2', :require => 'spec'
gem "capybara", "0.3.9"
gem "cucumber
We recently upgraded to rspec2 / rails 3 and our specs are taking a
very long time to run. It takes nearly 12 minutes before the first
dot comes out. Before the upgrade, our entire suite of 6000+ specs
would run in about 6 minutes.
The majority of the delay seems to be during the loading of the
I ended up solving the ruby-prof conflict. The problem was that I had
included the ruby-prof gem in my Gemfile. After removing it and doing
a `bundle install` everything worked.
I will start a new thread if the profiling results lead to performance
opportunities in rspec boot time.