Just getting started with Ruby and Rails, I wanted to check out BDD and
cucumber seemed like a good place to start. Let me know if this stuff
is too new for a newbie and I’ll wander off.
$ rake features
(in /Library/WebServer/Documents/todolist)
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require': no such file to load -- webrat/rspec-rails (MissingSourceFile) Failed to load features/support/env.rb from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in require’
from
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in require' from ./features/support/env.rb:12 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require’
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in require' from /Users/sarah/.gem/ruby/1.8/gems/cucumber-0.1.13/bin/../lib/cucumber/cli.rb:230:in require_files’
from
/Users/sarah/.gem/ruby/1.8/gems/cucumber-0.1.13/bin/…/lib/cucumber/cli.rb:228:in each' from /Users/sarah/.gem/ruby/1.8/gems/cucumber-0.1.13/bin/../lib/cucumber/cli.rb:228:in require_files’
from
/Users/sarah/.gem/ruby/1.8/gems/cucumber-0.1.13/bin/…/lib/cucumber/cli.rb:152:in execute!' from /Users/sarah/.gem/ruby/1.8/gems/cucumber-0.1.13/bin/../lib/cucumber/cli.rb:13:in execute’
from /Users/sarah/.gem/ruby/1.8/gems/cucumber-0.1.13/bin/cucumber:6
rake aborted!
I even tried installing webrat as a plugin which seemed to be a solution
proposed in a previous post:
script/plugin install git://github.com/brynary/webrat.git
Hi Sarah,
I am a newbie as well and followed the wiki page but continue to get the
error -
no such file to load – webrat/rspec-rails (MissingSourceFile)
I am using webrat 0.3.2 cucumber 0.1.13 activerecord 2.1.1
I am using webrat 0.3.2 cucumber 0.1.13 activerecord 2.1.1
You need a newer webrat - for example gem install aslakhellesoy-webrat
Aslak
Thanks that help me out. It installed 0.3.2.2 which works, whereas “sudo
gem install webrat” installed 0.3.4 which yields the error message “no
such file to load – webrat/rspec-rails”
Thanks that help me out. It installed 0.3.2.2 which works, whereas
“sudo
gem install webrat” installed 0.3.4 which yields the error message “no
such file to load – webrat/rspec-rails”
Hi Fernando. For an answer, check out the thread titled “Which webrat
gem should be used?” which I started on January 15th.
Cheers,
Nick
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.