LoadError : Setup error? Trying to use Ruby/cucumber

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’

Sophi Italy wrote:

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’

Apparently, it wants a file called ‘expectations’ in a subfolder called
‘spec’.
It might be ‘expectations.rb’ … Give it a shot.

Aldric G. wrote:

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).

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs