LoadError : Setup error? Trying to use Ruby/cucumber

S

Sophie

Any idea what might be causing this LoadError ? I just installed the
cucumber gem and am trying to run it, on OSX 10.5.6

Thanks!
cucumber examples/i18n/it/features/somma.feature
Using the default profile...
no such file to load -- spec/expectations (LoadError)
/Users/s/.rvm/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
 
A

Aldric Giacomoni

Sophi said:
Any idea what might be causing this LoadError ? I just installed the
cucumber gem and am trying to run it, on OSX 10.5.6

Thanks!

Using the default profile...
no such file to load -- spec/expectations (LoadError)
/Users/s/.rvm/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'

Apparently, it wants a file called 'expectations' in a subfolder called
'spec'.
It might be 'expectations.rb' .. Give it a shot.
 
B

Brian Candler

Aldric said:
Apparently, it wants a file called 'expectations' in a subfolder called
'spec'.
It might be 'expectations.rb' .. Give it a shot.

...which you will get if you install the rspec gem.

$ ls -l /var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/expectations.rb
-rw-r--r-- 1 root root 1277 2010-01-15 15:25
/var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/expectations.rb

Cucumber doesn't install rspec as a dependency because it doesn't force
you to use rspec in your tests (fortunately).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top