[rspec-users] rspec_on_rails (MissingSourceFile)

aslak hellesoy aslak.hellesoy at gmail.com
Wed Nov 22 18:06:03 EST 2006


On 11/22/06, Keith McDonnell <keith at dancingtext.com> wrote:
> 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
>

I believe this is fixed on trunk. Could you try this instead?:

(somewhere outside your rails app)
svn co svn://rubyforge.org/var/svn/rspec/trunk rspec
cd rspec
rake gem
sudo gem install pkg/rspec-0.7.3.gem

And then install the trunk/HEAD rspec plugin in your rails app:
./script/plugin install
svn://rubyforge.org/var/svn/rspec/trunkvendor/rspec_on_rails/vendor/plugins/rspec

If the problem still persists, please file a bug at the RubyForge tracker.

HTH,
Aslak

>
> $ ./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
>
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list