[rspec-users] rspec_on_rails (MissingSourceFile)

Keith McDonnell keith at dancingtext.com
Wed Nov 22 17:04:58 EST 2006


Hi there,

I've installed rspec, rails plugin & generators thusly:

$ sudo gem install rspec
$ sudo gem install rspec_generator
$ sudo gem install zentest -v 3.4.1
$ ./script/plugin install 
svn://rubyforge.org/var/svn/rspec/tags/REL_0_7_2/vendor/rspec_on_rails/vendor/plugins/rspec 


$ ./script/generate rspec
$ ./script/generate rspec_model ModelName

With Rails version:

$ rails --version
Rails 1.1.6

However, when I try to run the specs ...

$ rake spec:models

/usr/local/bin/ruby 
-I"/usr/local/lib/ruby/gems/1.8/gems/rspec-0.7.2/lib" 
"/usr/local/lib/ruby/gems/1.8/gems/rspec-0.7.2/bin/spec" 
"spec/models/daily_scrum_spec.rb" "spec/models/progress_report_spec.rb"
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`gem_original_require': no such file to load -- 
./spec/models/../../vendor/generators/rspec/lib/rspec_on_rails 
(MissingSourceFile)
        from 
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`require'
        from 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in 
`require'
        from ./spec/models/../spec_helper.rb:3
        from ./spec/models/daily_scrum_spec.rb:1
        from 
/usr/local/lib/ruby/gems/1.8/gems/rspec-0.7.2/lib/spec/runner/command_line.rb:21:in 
`run'
        from 
/usr/local/lib/ruby/gems/1.8/gems/rspec-0.7.2/lib/spec/runner/command_line.rb:15:in 
`run'
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-0.7.2/bin/spec:4
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby 
-I"/usr/local/lib/ruby...]


This file seems to be missing:

${RAILS_DEV_DIR}/spec/models/../../vendor/generators/rspec/lib/rspec_on_rails 
(MissingSourceFile)

Here's my vendor/generators dir :

vendor/generators
|-- rspec_controller
|   |-- USAGE
|   |-- rspec_controller_generator.rb
|   `-- templates
|       `-- controller_spec.rb
`-- rspec_model
    |-- USAGE
    |-- rspec_model_generator.rb
    `-- templates
        `-- model_spec.rb

No rspec/lib/rspec_on_rails in there???

There is a vendor/plugins/rspec/lib/rspec_on_rails.rb file however.

I'm stumped. Any ideas ?

Keith





More information about the rspec-users mailing list