
webrat 0.4.1 fails to find Spec::Runner with system wide gem rspec-rails 1.1.12
Reported by joahking | February 7th, 2009 @ 02:50 PM | in 0.4.2
This are my versions:
*** LOCAL GEMS *** cucumber (0.1.99.21)
webrat (0.4.1)
rspec (1.1.12)
rspec-rails (1.1.12)
on a rails 2.2.2 project
when I do
$ cucumber features/manage_cukes.feature
/home/joahking/dev/rails/cukes/vendor/rails/activesupport/lib/active_support/dependencies.rb:442:in
load_missing_constant': uninitialized constant Spec::Runner
(NameError) from
/home/joahking/dev/rails/cukes/vendor/rails/activesupport/lib/active_support/dependencies.rb:77:in
const_missing'
from
/usr/lib/ruby/gems/1.8/gems/webrat-0.4.1/lib/webrat/rspec-rails.rb:8
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
polyglot_original_require'
from
/usr/lib/ruby/gems/1.8/gems/polyglot-0.2.4/lib/polyglot.rb:53:in
require' from
/home/joahking/dev/rails/cukes/vendor/rails/activesupport/lib/active_support/dependencies.rb:155:in
require'
from ./features/support/env.rb:16 from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
polyglot_original_require'
from
/usr/lib/ruby/gems/1.8/gems/polyglot-0.2.4/lib/polyglot.rb:53:in
require' from
/usr/lib/ruby/gems/1.8/gems/cucumber-0.1.99.21/bin/../lib/cucumber/cli/main.rb:60:in
require_files'
from
/usr/lib/ruby/gems/1.8/gems/cucumber-0.1.99.21/bin/../lib/cucumber/cli/main.rb:58:in
each' from
/usr/lib/ruby/gems/1.8/gems/cucumber-0.1.99.21/bin/../lib/cucumber/cli/main.rb:58:in
require_files'
from
/usr/lib/ruby/gems/1.8/gems/cucumber-0.1.99.21/bin/../lib/cucumber/cli/main.rb:34:in
execute!' from
/usr/lib/ruby/gems/1.8/gems/cucumber-0.1.99.21/bin/../lib/cucumber/cli/main.rb:20:in
execute'
from /usr/lib/ruby/gems/1.8/gems/cucumber-0.1.99.21/bin/cucumber:6
from /usr/bin/cucumber:19:in `load' from /usr/bin/cucumber:19
the problem goes away if I vendored rspec and rspec-rails:
$ ruby script/plugin install git://github.com/dchelimsky/rspec.git
-r 'tag 1.1.12' $ ruby script/plugin install git://github.com/dchelimsky/rspec-rails.git
-r 'tag 1.1.12'
then webrat does find the Spec::Runner
you can find example code in this gist: http://gist.github.com/59920
specially after:
A 2? lets upgrade cucumber (webrat is at its lattest version)
and read more here:
http://rubyforge.org/pipermail/rspec-users/2009-February/012161.html
Comments and changes to this ticket
-
Bryan Helmkamp February 8th, 2009 @ 11:28 PM
- Milestone set to 0.4.2
- Assigned user set to Bryan Helmkamp
- State changed from new to open
-
Jason May May 20th, 2009 @ 02:32 PM
I saw this same error (rails 2.3.2, webrat 0.4.4, cucumber 0.3.3, rspec 1.2.6, rspec-rails 1.2.6). Was running
cucumber features
on an older rails project.Fixed it by updating the cucumber support files:
env.rb
,paths.rb
, and alsolib/tasks/cucumber.rake
. -
gaffo June 15th, 2009 @ 12:53 AM
- State changed from open to resolved
I'm going to mark this as resolved per Jason's comment above. Please write back if this doesn't fix it and we'll re-open.
Thanks to all those who commented.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.