[rspec-users] RSpec 0.8.2 pain, missing spec/rails?

Morten Primdahl morten at kikobu.com
Wed May 2 11:59:38 EDT 2007


Found the problem (thanks to Yurii Rashkovskii). The plugin installation 
from http://rspec.rubyforge.org/documentation/rails/install.html doesn't 
work with the 0.8.2 SVN structure.

white:~/tmp/kano morten$ ruby script/plugin install 
svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec_on_rails

white:~/tmp/kano morten$ find vendor/plugins/rspec_on_rails/ -name "rails*"
vendor/plugins/rspec_on_rails//public/images/rails.png
vendor/plugins/rspec_on_rails//vendor/plugins/rspec_on_rails/generators/rspec/templates/script/rails_spec_server
vendor/plugins/rspec_on_rails//vendor/plugins/rspec_on_rails/lib/spec/rails
vendor/plugins/rspec_on_rails//vendor/plugins/rspec_on_rails/lib/spec/rails.rb
vendor/plugins/rspec_on_rails//vendor/plugins/rspec_on_rails/spec/rails
vendor/plugins/rspec_on_rails//vendor/rails

Using the following works better:

piston import 
svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec_on_rails/vendor/plugins/rspec_on_rails

Br,

Morten




David Chelimsky wrote:
> On 5/2/07, Morten <lists at kikobu.com> wrote:
>> aslak hellesoy wrote:
>>> On 5/2/07, Morten <lists at kikobu.com> wrote:
>>>> Hi. I'm upgrading a project from an 0.8.0 pre-release gem to 0.8.2.
>>>> I've installed the 0.8.2 gem, and the rspec_on_rails 0.8.2 plugin:
>>>>
>>>> ruby script/plugin install
>>>> svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec
>>>>
>>>> When I try to run my specs though, I get the below error. It's as if the
>>>> spec_helper cannot find "spec/rails". I've noticed that "spec/rails" is
>>>> part of the rspec plugin, but I'm using the gem and cannot find
>>>> spec/rails.rb (it's required in spec_helper.rb). I'm stuck and banging
>>>> my head against the walls. Things fall out.
>>>>
>>>> Any tips much appreciated.
>>>>
>>> Did you rerun script/generate rspec after upgrading?
>> Yes.
>>
>>> Could you try to upgrade to RSpec 0.9.1?
>> Hmm.. I tried that path but it changed a lot of specs to non-working.
> 
> Did you read http://rspec.rubyforge.org/upgrade.html?
> 
>> Br,
>>
>> Morten
>>
>>
>>
>>> Aslak
>>>
>>>> Morten
>>>>
>>>> white:~/svn/novalis morten$ rake spec
>>>> (in /Users/morten/svn/novalis)
>>>> /opt/local/bin/ruby
>>>> -I"/opt/local/lib/ruby/gems/1.8/gems/rspec-0.8.2/lib"
>>>> "/opt/local/lib/ruby/gems/1.8/gems/rspec-0.8.2/bin/spec"
>>>> "spec/controllers/account_controller_spec.rb"
>>>> "spec/controllers/admin_controller_spec.rb"
>>>> "spec/controllers/auhtenticate_controller_spec.rb"
>>>> "spec/controllers/bar_controller_spec.rb"
>>>> "spec/controllers/calendar_test_controller_spec.rb"
>>>> "spec/controllers/manager_controller_spec.rb"
>>>> "spec/controllers/reports_controller_spec.rb"
>>>> "spec/controllers/stress_profiles_controller_spec.rb"
>>>> "spec/controllers/therapist_controller_spec.rb" --options
>>>> "/Users/morten/svn/novalis/config/../spec/spec.opts"
>>>> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
>>>> `gem_original_require': no such file to load -- spec/rails
>>>> (MissingSourceFile)
>>>>          from
>>>> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
>>>> `require'
>>>>          from
>>>> /Users/morten/svn/novalis/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in
>>>> `require'
>>>>          from
>>>> /Users/morten/svn/novalis/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in
>>>> `new_constants_in'
>>>>          from
>>>> /Users/morten/svn/novalis/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in
>>>> `require'
>>>>          from ./spec/controllers/../spec_helper.rb:5
>>>>          from ./spec/controllers/account_controller_spec.rb:1
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> rspec-users mailing list
>>>> rspec-users at rubyforge.org
>>>> http://rubyforge.org/mailman/listinfo/rspec-users
>>>>
>>> _______________________________________________
>>> rspec-users mailing list
>>> rspec-users at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/rspec-users
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list