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. 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
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? Could you try to upgrade to RSpec 0.9.1? 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 >
Since you''re upgrading, why don''t you upgrade to 0.9.1? That''s the latest and greatest. David 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. > > 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 >
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. 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
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 >
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?Yeah, the converter didn''t work properly. I''ll give it a shot and manually correct the specs. Br, Morten> >> 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
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
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
Hope you don''t get this message all 3 times I sent it, got a headache from all this and sent it from the wrong sender account :-) 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
On 5/2/07, Morten <lists at kikobu.com> wrote:> > Hope you don''t get this message all 3 times I sent it, got a headache > from all this and sent it from the wrong sender account :-) > > 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_railsRead the bottom of that page.> > 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 > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
> > Did you read http://rspec.rubyforge.org/upgrade.html? > > Yeah, the converter didn''t work properly. I''ll give it a shot and > manually correct the specs. >If you tell us what you did and how it didn''t work we may be able to improve it. Aslak> Br, >
David Chelimsky wrote:> On 5/2/07, Morten <lists at kikobu.com> wrote: >> Hope you don''t get this message all 3 times I sent it, got a headache >> from all this and sent it from the wrong sender account :-) >> >> 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 > > Read the bottom of that page.Ouch. Beers on me, and pardon the spam. Morten
aslak hellesoy wrote:>>> Did you read http://rspec.rubyforge.org/upgrade.html? >> Yeah, the converter didn''t work properly. I''ll give it a shot and >> manually correct the specs. >> > > If you tell us what you did and how it didn''t work we may be able to improve it.In these 2 conversions the parenthesis are wrong: Before: controller.should_redirect_to ''http://not_existing_domain_for_novalis.test.host/404.html'' After: controller.should be_redirect_to(''http:)//not_existing_domain_for_novalis.test.host/404.html'' Before: controller.should_redirect_to :subdomain => account.subdomain, :controller => ''authenticate'', :action => ''login'' After: controller.should be_redirect_to(:subdomain)=> account.subdomain, :controller => ''authenticate'', :action => ''login'' Br, Morten
On 5/2/07, Morten <lists at kikobu.com> wrote:> aslak hellesoy wrote: > >>> Did you read http://rspec.rubyforge.org/upgrade.html? > >> Yeah, the converter didn''t work properly. I''ll give it a shot and > >> manually correct the specs. > >> > > > > If you tell us what you did and how it didn''t work we may be able to improve it. > > In these 2 conversions the parenthesis are wrong: > > Before: > controller.should_redirect_to > ''http://not_existing_domain_for_novalis.test.host/404.html'' > > After: > controller.should > be_redirect_to(''http:)//not_existing_domain_for_novalis.test.host/404.html'' > > Before: > controller.should_redirect_to :subdomain => account.subdomain, > :controller => ''authenticate'', :action => ''login'' > > After: > controller.should be_redirect_to(:subdomain)=> account.subdomain, > :controller => ''authenticate'', :action => ''login'' >Thanks a bunch. Another bug in the translator is plugged on trunk. Cheers, Aslak> Br, > > Morten > > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >