Started a new Rails project, and installed RSpec and the Rails plugin vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 vendor/plugins/rspec_on_rails (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) - 1332 Generated the rspec file, created a model...the spec runs fine if I do ruby spec/models/foo_spec.rb. Running rake though gives me the Your RSpec on Rails plugin is incompatible with your installed RSpec. RSpec : 0.7.5 (r1330) RSpec on Rails : r1332 error. So apparently it''s looking at the gem rspec instead of the one I installed in my plugins folder. I''ve got an existing Rails app that uses edge RSpec, so I updated it to see if it broke, but it runs fine. I''m really really confused, I can''t tell what the difference is. Both apps are at the same revision, there''s nothing special about the config, but the old app works fine and the brand new one doesn''t. Any clues on what to do? I don''t remember doing anything special to get RSpec working. Just really confused now. Pat
David Chelimsky
2006-Dec-20 15:16 UTC
[rspec-users] Edge RSpec on Rails...what did I forget?
On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote:> Started a new Rails project, and installed RSpec and the Rails plugin > vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 > vendor/plugins/rspec_on_rails > (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) > - 1332 > > Generated the rspec file, created a model...the spec runs fine if I do > ruby spec/models/foo_spec.rb. Running rake though gives me the > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > RSpec : 0.7.5 (r1330) > RSpec on Rails : r1332 > > error. So apparently it''s looking at the gem rspec instead of the one > I installed in my plugins folder. I''ve got an existing Rails app that > uses edge RSpec, so I updated it to see if it broke, but it runs fine. > I''m really really confused, I can''t tell what the difference is. > Both apps are at the same revision, there''s nothing special about the > config, but the old app works fine and the brand new one doesn''t.The only diff would be in ~/spec/spec_helper.rb. Any differences in there?> > Any clues on what to do? I don''t remember doing anything special to > get RSpec working. Just really confused now. > > Pat > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote:> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > Started a new Rails project, and installed RSpec and the Rails plugin > > vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 > > vendor/plugins/rspec_on_rails > > (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) > > - 1332 > > > > Generated the rspec file, created a model...the spec runs fine if I do > > ruby spec/models/foo_spec.rb. Running rake though gives me the > > > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > > > RSpec : 0.7.5 (r1330) > > RSpec on Rails : r1332 > > > > error. So apparently it''s looking at the gem rspec instead of the one > > I installed in my plugins folder. I''ve got an existing Rails app that > > uses edge RSpec, so I updated it to see if it broke, but it runs fine. > > I''m really really confused, I can''t tell what the difference is. > > Both apps are at the same revision, there''s nothing special about the > > config, but the old app works fine and the brand new one doesn''t. > > The only diff would be in ~/spec/spec_helper.rb. Any differences in there?It''s something to do with Rails...my old app didn''t have the very latest edge. r5734 works fine, and the latest doesn''t. I''m gonna step through the revisions to find out just what broke RSpec. Pat
On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote:> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > Started a new Rails project, and installed RSpec and the Rails plugin > > > vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 > > > vendor/plugins/rspec_on_rails > > > (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) > > > - 1332 > > > > > > Generated the rspec file, created a model...the spec runs fine if I do > > > ruby spec/models/foo_spec.rb. Running rake though gives me the > > > > > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > > > > > RSpec : 0.7.5 (r1330) > > > RSpec on Rails : r1332 > > > > > > error. So apparently it''s looking at the gem rspec instead of the one > > > I installed in my plugins folder. I''ve got an existing Rails app that > > > uses edge RSpec, so I updated it to see if it broke, but it runs fine. > > > I''m really really confused, I can''t tell what the difference is. > > > Both apps are at the same revision, there''s nothing special about the > > > config, but the old app works fine and the brand new one doesn''t. > > > > The only diff would be in ~/spec/spec_helper.rb. Any differences in there? > > It''s something to do with Rails...my old app didn''t have the very > latest edge. r5734 works fine, and the latest doesn''t. I''m gonna > step through the revisions to find out just what broke RSpec. > > Pat >Okay, Rails edge r5738 breaks it. The changeset is at http://dev.rubyonrails.org/changeset/5720 You can''t replicate it in the demo app because of how the app loads everything (I guess). The demo app doesn''t break at all, but if you''ve just installed rspec as a plugin and the Rails plugin then it breaks at 5738. Pat
On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote:> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > Started a new Rails project, and installed RSpec and the Rails plugin > > > > vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 > > > > vendor/plugins/rspec_on_rails > > > > (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) > > > > - 1332 > > > > > > > > Generated the rspec file, created a model...the spec runs fine if I do > > > > ruby spec/models/foo_spec.rb. Running rake though gives me the > > > > > > > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > > > > > > > RSpec : 0.7.5 (r1330) > > > > RSpec on Rails : r1332 > > > > > > > > error. So apparently it''s looking at the gem rspec instead of the one > > > > I installed in my plugins folder. I''ve got an existing Rails app that > > > > uses edge RSpec, so I updated it to see if it broke, but it runs fine. > > > > I''m really really confused, I can''t tell what the difference is. > > > > Both apps are at the same revision, there''s nothing special about the > > > > config, but the old app works fine and the brand new one doesn''t. > > > > > > The only diff would be in ~/spec/spec_helper.rb. Any differences in there? > > > > It''s something to do with Rails...my old app didn''t have the very > > latest edge. r5734 works fine, and the latest doesn''t. I''m gonna > > step through the revisions to find out just what broke RSpec. > > > > Pat > > > > Okay, Rails edge r5738 breaks it. The changeset is at > http://dev.rubyonrails.org/changeset/5720 > > You can''t replicate it in the demo app because of how the app loads > everything (I guess). The demo app doesn''t break at all, but if > you''ve just installed rspec as a plugin and the Rails plugin then it > breaks at 5738. > > Pat >Sorry, changeset should be http://dev.rubyonrails.org/changeset/5738 The problem is that initializer.rb is no longer calling paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] in the default_load_paths method. I''ve tried adding config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) to the config block in environment.rb but it''s not doing anything. So I haven''t been able to fix it, but at least we have a place to look. Pat
On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote:> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > > Started a new Rails project, and installed RSpec and the Rails plugin > > > > > vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 > > > > > vendor/plugins/rspec_on_rails > > > > > (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) > > > > > - 1332 > > > > > > > > > > Generated the rspec file, created a model...the spec runs fine if I do > > > > > ruby spec/models/foo_spec.rb. Running rake though gives me the > > > > > > > > > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > > > > > > > > > RSpec : 0.7.5 (r1330) > > > > > RSpec on Rails : r1332 > > > > > > > > > > error. So apparently it''s looking at the gem rspec instead of the one > > > > > I installed in my plugins folder. I''ve got an existing Rails app that > > > > > uses edge RSpec, so I updated it to see if it broke, but it runs fine. > > > > > I''m really really confused, I can''t tell what the difference is. > > > > > Both apps are at the same revision, there''s nothing special about the > > > > > config, but the old app works fine and the brand new one doesn''t. > > > > > > > > The only diff would be in ~/spec/spec_helper.rb. Any differences in there? > > > > > > It''s something to do with Rails...my old app didn''t have the very > > > latest edge. r5734 works fine, and the latest doesn''t. I''m gonna > > > step through the revisions to find out just what broke RSpec. > > > > > > Pat > > > > > > > Okay, Rails edge r5738 breaks it. The changeset is at > > http://dev.rubyonrails.org/changeset/5720 > > > > You can''t replicate it in the demo app because of how the app loads > > everything (I guess). The demo app doesn''t break at all, but if > > you''ve just installed rspec as a plugin and the Rails plugin then it > > breaks at 5738. > > > > Pat > > > > Sorry, changeset should be http://dev.rubyonrails.org/changeset/5738 > > The problem is that initializer.rb is no longer calling > > paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] > > in the default_load_paths method. > > I''ve tried adding > > config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib > #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) > > to the config block in environment.rb but it''s not doing anything. > > So I haven''t been able to fix it, but at least we have a place to look. > > Pat >Has to do with some path issues, the rake tasks got broken. Patch on the way. Pat
David Chelimsky
2006-Dec-20 17:58 UTC
[rspec-users] Edge RSpec on Rails...what did I forget?
On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote:> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > > > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > > > Started a new Rails project, and installed RSpec and the Rails plugin > > > > > > vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 > > > > > > vendor/plugins/rspec_on_rails > > > > > > (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) > > > > > > - 1332 > > > > > > > > > > > > Generated the rspec file, created a model...the spec runs fine if I do > > > > > > ruby spec/models/foo_spec.rb. Running rake though gives me the > > > > > > > > > > > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > > > > > > > > > > > RSpec : 0.7.5 (r1330) > > > > > > RSpec on Rails : r1332 > > > > > > > > > > > > error. So apparently it''s looking at the gem rspec instead of the one > > > > > > I installed in my plugins folder. I''ve got an existing Rails app that > > > > > > uses edge RSpec, so I updated it to see if it broke, but it runs fine. > > > > > > I''m really really confused, I can''t tell what the difference is. > > > > > > Both apps are at the same revision, there''s nothing special about the > > > > > > config, but the old app works fine and the brand new one doesn''t. > > > > > > > > > > The only diff would be in ~/spec/spec_helper.rb. Any differences in there? > > > > > > > > It''s something to do with Rails...my old app didn''t have the very > > > > latest edge. r5734 works fine, and the latest doesn''t. I''m gonna > > > > step through the revisions to find out just what broke RSpec. > > > > > > > > Pat > > > > > > > > > > Okay, Rails edge r5738 breaks it. The changeset is at > > > http://dev.rubyonrails.org/changeset/5720 > > > > > > You can''t replicate it in the demo app because of how the app loads > > > everything (I guess). The demo app doesn''t break at all, but if > > > you''ve just installed rspec as a plugin and the Rails plugin then it > > > breaks at 5738. > > > > > > Pat > > > > > > > Sorry, changeset should be http://dev.rubyonrails.org/changeset/5738 > > > > The problem is that initializer.rb is no longer calling > > > > paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] > > > > in the default_load_paths method. > > > > I''ve tried adding > > > > config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib > > #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) > > > > to the config block in environment.rb but it''s not doing anything. > > > > So I haven''t been able to fix it, but at least we have a place to look. > > > > Pat > > > > Has to do with some path issues, the rake tasks got broken. Patch on the way.An rspec patch or a rails patch?> > Pat > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote:> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > > On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > > > > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > > > > Started a new Rails project, and installed RSpec and the Rails plugin > > > > > > > vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 > > > > > > > vendor/plugins/rspec_on_rails > > > > > > > (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) > > > > > > > - 1332 > > > > > > > > > > > > > > Generated the rspec file, created a model...the spec runs fine if I do > > > > > > > ruby spec/models/foo_spec.rb. Running rake though gives me the > > > > > > > > > > > > > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > > > > > > > > > > > > > RSpec : 0.7.5 (r1330) > > > > > > > RSpec on Rails : r1332 > > > > > > > > > > > > > > error. So apparently it''s looking at the gem rspec instead of the one > > > > > > > I installed in my plugins folder. I''ve got an existing Rails app that > > > > > > > uses edge RSpec, so I updated it to see if it broke, but it runs fine. > > > > > > > I''m really really confused, I can''t tell what the difference is. > > > > > > > Both apps are at the same revision, there''s nothing special about the > > > > > > > config, but the old app works fine and the brand new one doesn''t. > > > > > > > > > > > > The only diff would be in ~/spec/spec_helper.rb. Any differences in there? > > > > > > > > > > It''s something to do with Rails...my old app didn''t have the very > > > > > latest edge. r5734 works fine, and the latest doesn''t. I''m gonna > > > > > step through the revisions to find out just what broke RSpec. > > > > > > > > > > Pat > > > > > > > > > > > > > Okay, Rails edge r5738 breaks it. The changeset is at > > > > http://dev.rubyonrails.org/changeset/5720 > > > > > > > > You can''t replicate it in the demo app because of how the app loads > > > > everything (I guess). The demo app doesn''t break at all, but if > > > > you''ve just installed rspec as a plugin and the Rails plugin then it > > > > breaks at 5738. > > > > > > > > Pat > > > > > > > > > > Sorry, changeset should be http://dev.rubyonrails.org/changeset/5738 > > > > > > The problem is that initializer.rb is no longer calling > > > > > > paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] > > > > > > in the default_load_paths method. > > > > > > I''ve tried adding > > > > > > config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib > > > #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) > > > > > > to the config block in environment.rb but it''s not doing anything. > > > > > > So I haven''t been able to fix it, but at least we have a place to look. > > > > > > Pat > > > > > > > Has to do with some path issues, the rake tasks got broken. Patch on the way. > > An rspec patch or a rails patch? >RSpec. I accidentally filed it in bugs, but https://rubyforge.org/tracker/index.php?func=detail&aid=7393&group_id=797&atid=3149 has the info and the patch. Over all pretty simple, but it was a bitch to figure out. No errors or anything...Rails just silently ignored the task file. Pat
David Chelimsky
2006-Dec-20 19:19 UTC
[rspec-users] Edge RSpec on Rails...what did I forget?
On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote:> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > > > On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > > > > > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > > > > > > > > Started a new Rails project, and installed RSpec and the Rails plugin > > > > > > > > vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/trunk/rspec) - 1332 > > > > > > > > vendor/plugins/rspec_on_rails > > > > > > > > (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/vendor/plugins/rspec_on_rails) > > > > > > > > - 1332 > > > > > > > > > > > > > > > > Generated the rspec file, created a model...the spec runs fine if I do > > > > > > > > ruby spec/models/foo_spec.rb. Running rake though gives me the > > > > > > > > > > > > > > > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > > > > > > > > > > > > > > > RSpec : 0.7.5 (r1330) > > > > > > > > RSpec on Rails : r1332 > > > > > > > > > > > > > > > > error. So apparently it''s looking at the gem rspec instead of the one > > > > > > > > I installed in my plugins folder. I''ve got an existing Rails app that > > > > > > > > uses edge RSpec, so I updated it to see if it broke, but it runs fine. > > > > > > > > I''m really really confused, I can''t tell what the difference is. > > > > > > > > Both apps are at the same revision, there''s nothing special about the > > > > > > > > config, but the old app works fine and the brand new one doesn''t. > > > > > > > > > > > > > > The only diff would be in ~/spec/spec_helper.rb. Any differences in there? > > > > > > > > > > > > It''s something to do with Rails...my old app didn''t have the very > > > > > > latest edge. r5734 works fine, and the latest doesn''t. I''m gonna > > > > > > step through the revisions to find out just what broke RSpec. > > > > > > > > > > > > Pat > > > > > > > > > > > > > > > > Okay, Rails edge r5738 breaks it. The changeset is at > > > > > http://dev.rubyonrails.org/changeset/5720 > > > > > > > > > > You can''t replicate it in the demo app because of how the app loads > > > > > everything (I guess). The demo app doesn''t break at all, but if > > > > > you''ve just installed rspec as a plugin and the Rails plugin then it > > > > > breaks at 5738. > > > > > > > > > > Pat > > > > > > > > > > > > > Sorry, changeset should be http://dev.rubyonrails.org/changeset/5738 > > > > > > > > The problem is that initializer.rb is no longer calling > > > > > > > > paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] > > > > > > > > in the default_load_paths method. > > > > > > > > I''ve tried adding > > > > > > > > config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib > > > > #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) > > > > > > > > to the config block in environment.rb but it''s not doing anything. > > > > > > > > So I haven''t been able to fix it, but at least we have a place to look. > > > > > > > > Pat > > > > > > > > > > Has to do with some path issues, the rake tasks got broken. Patch on the way. > > > > An rspec patch or a rails patch? > > > > > RSpec. I accidentally filed it in bugs, but > https://rubyforge.org/tracker/index.php?func=detail&aid=7393&group_id=797&atid=3149 > has the info and the patch. > > Over all pretty simple, but it was a bitch to figure out. No errors > or anything...Rails just silently ignored the task file.Nice work Pat. Thanks. I moved it to patches and will commit it later today. Cheers, David> > Pat > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Should I take this flurry of concerted activity to mean that RSpec ( or at least a few committed committers ) now support edge rails, and people are using it fine for Edge projects ? cheers, David On 21/12/2006, at 6:19 AM, David Chelimsky wrote:> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: >>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: >>>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>>>> Started a new Rails project, and installed RSpec and the >>>>>>>>> Rails plugin >>>>>>>>> vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/ >>>>>>>>> trunk/rspec) - 1332 >>>>>>>>> vendor/plugins/rspec_on_rails >>>>>>>>> (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/ >>>>>>>>> vendor/plugins/rspec_on_rails) >>>>>>>>> - 1332 >>>>>>>>> >>>>>>>>> Generated the rspec file, created a model...the spec runs >>>>>>>>> fine if I do >>>>>>>>> ruby spec/models/foo_spec.rb. Running rake though gives me >>>>>>>>> the >>>>>>>>> >>>>>>>>> Your RSpec on Rails plugin is incompatible with your >>>>>>>>> installed RSpec. >>>>>>>>> >>>>>>>>> RSpec : 0.7.5 (r1330) >>>>>>>>> RSpec on Rails : r1332 >>>>>>>>> >>>>>>>>> error. So apparently it''s looking at the gem rspec instead >>>>>>>>> of the one >>>>>>>>> I installed in my plugins folder. I''ve got an existing >>>>>>>>> Rails app that >>>>>>>>> uses edge RSpec, so I updated it to see if it broke, but it >>>>>>>>> runs fine. >>>>>>>>> I''m really really confused, I can''t tell what the >>>>>>>>> difference is. >>>>>>>>> Both apps are at the same revision, there''s nothing special >>>>>>>>> about the >>>>>>>>> config, but the old app works fine and the brand new one >>>>>>>>> doesn''t. >>>>>>>> >>>>>>>> The only diff would be in ~/spec/spec_helper.rb. Any >>>>>>>> differences in there? >>>>>>> >>>>>>> It''s something to do with Rails...my old app didn''t have the >>>>>>> very >>>>>>> latest edge. r5734 works fine, and the latest doesn''t. I''m >>>>>>> gonna >>>>>>> step through the revisions to find out just what broke RSpec. >>>>>>> >>>>>>> Pat >>>>>>> >>>>>> >>>>>> Okay, Rails edge r5738 breaks it. The changeset is at >>>>>> http://dev.rubyonrails.org/changeset/5720 >>>>>> >>>>>> You can''t replicate it in the demo app because of how the app >>>>>> loads >>>>>> everything (I guess). The demo app doesn''t break at all, but if >>>>>> you''ve just installed rspec as a plugin and the Rails plugin >>>>>> then it >>>>>> breaks at 5738. >>>>>> >>>>>> Pat >>>>>> >>>>> >>>>> Sorry, changeset should be http://dev.rubyonrails.org/changeset/ >>>>> 5738 >>>>> >>>>> The problem is that initializer.rb is no longer calling >>>>> >>>>> paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] >>>>> >>>>> in the default_load_paths method. >>>>> >>>>> I''ve tried adding >>>>> >>>>> config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib >>>>> #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) >>>>> >>>>> to the config block in environment.rb but it''s not doing anything. >>>>> >>>>> So I haven''t been able to fix it, but at least we have a place >>>>> to look. >>>>> >>>>> Pat >>>>> >>>> >>>> Has to do with some path issues, the rake tasks got broken. >>>> Patch on the way. >>> >>> An rspec patch or a rails patch? >>> >> >> >> RSpec. I accidentally filed it in bugs, but >> https://rubyforge.org/tracker/index.php? >> func=detail&aid=7393&group_id=797&atid=3149 >> has the info and the patch. >> >> Over all pretty simple, but it was a bitch to figure out. No errors >> or anything...Rails just silently ignored the task file. > > Nice work Pat. Thanks. > > I moved it to patches and will commit it later today. > > Cheers, > David > >> >> Pat >> _______________________________________________ >> 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
2006-Dec-20 22:51 UTC
[rspec-users] Edge RSpec on Rails...what did I forget?
On 12/20/06, David Lee <david at davelee.com.au> wrote:> Should I take this flurry of concerted activity to mean that RSpec > ( or at least a few committed committers ) now support edge rails, > and people are using it fine for Edge projects ?NO, NO, NO, NO. There is absolutely NO guarantee or even formalized attempt to keep up w/ edge rails. We do NOT recommend that you use rspec_on_rails w/ anything other than the current stable release of rails (1.1.6) unless YOU are prepared to maintain it yourself!!!!!! That said, we do try to keep up ;) Cheers, David> > cheers, > David > > On 21/12/2006, at 6:19 AM, David Chelimsky wrote: > > > On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > >>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>>>> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > >>>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>>>>>> Started a new Rails project, and installed RSpec and the > >>>>>>>>> Rails plugin > >>>>>>>>> vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/ > >>>>>>>>> trunk/rspec) - 1332 > >>>>>>>>> vendor/plugins/rspec_on_rails > >>>>>>>>> (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/ > >>>>>>>>> vendor/plugins/rspec_on_rails) > >>>>>>>>> - 1332 > >>>>>>>>> > >>>>>>>>> Generated the rspec file, created a model...the spec runs > >>>>>>>>> fine if I do > >>>>>>>>> ruby spec/models/foo_spec.rb. Running rake though gives me > >>>>>>>>> the > >>>>>>>>> > >>>>>>>>> Your RSpec on Rails plugin is incompatible with your > >>>>>>>>> installed RSpec. > >>>>>>>>> > >>>>>>>>> RSpec : 0.7.5 (r1330) > >>>>>>>>> RSpec on Rails : r1332 > >>>>>>>>> > >>>>>>>>> error. So apparently it''s looking at the gem rspec instead > >>>>>>>>> of the one > >>>>>>>>> I installed in my plugins folder. I''ve got an existing > >>>>>>>>> Rails app that > >>>>>>>>> uses edge RSpec, so I updated it to see if it broke, but it > >>>>>>>>> runs fine. > >>>>>>>>> I''m really really confused, I can''t tell what the > >>>>>>>>> difference is. > >>>>>>>>> Both apps are at the same revision, there''s nothing special > >>>>>>>>> about the > >>>>>>>>> config, but the old app works fine and the brand new one > >>>>>>>>> doesn''t. > >>>>>>>> > >>>>>>>> The only diff would be in ~/spec/spec_helper.rb. Any > >>>>>>>> differences in there? > >>>>>>> > >>>>>>> It''s something to do with Rails...my old app didn''t have the > >>>>>>> very > >>>>>>> latest edge. r5734 works fine, and the latest doesn''t. I''m > >>>>>>> gonna > >>>>>>> step through the revisions to find out just what broke RSpec. > >>>>>>> > >>>>>>> Pat > >>>>>>> > >>>>>> > >>>>>> Okay, Rails edge r5738 breaks it. The changeset is at > >>>>>> http://dev.rubyonrails.org/changeset/5720 > >>>>>> > >>>>>> You can''t replicate it in the demo app because of how the app > >>>>>> loads > >>>>>> everything (I guess). The demo app doesn''t break at all, but if > >>>>>> you''ve just installed rspec as a plugin and the Rails plugin > >>>>>> then it > >>>>>> breaks at 5738. > >>>>>> > >>>>>> Pat > >>>>>> > >>>>> > >>>>> Sorry, changeset should be http://dev.rubyonrails.org/changeset/ > >>>>> 5738 > >>>>> > >>>>> The problem is that initializer.rb is no longer calling > >>>>> > >>>>> paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] > >>>>> > >>>>> in the default_load_paths method. > >>>>> > >>>>> I''ve tried adding > >>>>> > >>>>> config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib > >>>>> #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) > >>>>> > >>>>> to the config block in environment.rb but it''s not doing anything. > >>>>> > >>>>> So I haven''t been able to fix it, but at least we have a place > >>>>> to look. > >>>>> > >>>>> Pat > >>>>> > >>>> > >>>> Has to do with some path issues, the rake tasks got broken. > >>>> Patch on the way. > >>> > >>> An rspec patch or a rails patch? > >>> > >> > >> > >> RSpec. I accidentally filed it in bugs, but > >> https://rubyforge.org/tracker/index.php? > >> func=detail&aid=7393&group_id=797&atid=3149 > >> has the info and the patch. > >> > >> Over all pretty simple, but it was a bitch to figure out. No errors > >> or anything...Rails just silently ignored the task file. > > > > Nice work Pat. Thanks. > > > > I moved it to patches and will commit it later today. > > > > Cheers, > > David > > > >> > >> Pat > >> _______________________________________________ > >> 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 >
Lourens Naude
2006-Dec-20 23:33 UTC
[rspec-users] Edge RSpec on Rails...what did I forget?
David, Been using rspec releases for 2 months with daily updated Edge without major glitches. For the odd edge cases, there''s always temp. monkey patching. Will tackle 0.7.5 tonight. - Lourens http://blog.methodmissing.com On 2006/12/20, at 22:51, David Chelimsky wrote:> On 12/20/06, David Lee <david at davelee.com.au> wrote: >> Should I take this flurry of concerted activity to mean that RSpec >> ( or at least a few committed committers ) now support edge rails, >> and people are using it fine for Edge projects ? > > NO, NO, NO, NO. There is absolutely NO guarantee or even formalized > attempt to keep up w/ edge rails. We do NOT recommend that you use > rspec_on_rails w/ anything other than the current stable release of > rails (1.1.6) unless YOU are prepared to maintain it yourself!!!!!! > > That said, we do try to keep up ;) > > Cheers, > David > >> >> cheers, >> David >> >> On 21/12/2006, at 6:19 AM, David Chelimsky wrote: >> >>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: >>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>>>> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: >>>>>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>>>>>> Started a new Rails project, and installed RSpec and the >>>>>>>>>>> Rails plugin >>>>>>>>>>> vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/ >>>>>>>>>>> trunk/rspec) - 1332 >>>>>>>>>>> vendor/plugins/rspec_on_rails >>>>>>>>>>> (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/ >>>>>>>>>>> vendor/plugins/rspec_on_rails) >>>>>>>>>>> - 1332 >>>>>>>>>>> >>>>>>>>>>> Generated the rspec file, created a model...the spec runs >>>>>>>>>>> fine if I do >>>>>>>>>>> ruby spec/models/foo_spec.rb. Running rake though gives me >>>>>>>>>>> the >>>>>>>>>>> >>>>>>>>>>> Your RSpec on Rails plugin is incompatible with your >>>>>>>>>>> installed RSpec. >>>>>>>>>>> >>>>>>>>>>> RSpec : 0.7.5 (r1330) >>>>>>>>>>> RSpec on Rails : r1332 >>>>>>>>>>> >>>>>>>>>>> error. So apparently it''s looking at the gem rspec instead >>>>>>>>>>> of the one >>>>>>>>>>> I installed in my plugins folder. I''ve got an existing >>>>>>>>>>> Rails app that >>>>>>>>>>> uses edge RSpec, so I updated it to see if it broke, but it >>>>>>>>>>> runs fine. >>>>>>>>>>> I''m really really confused, I can''t tell what the >>>>>>>>>>> difference is. >>>>>>>>>>> Both apps are at the same revision, there''s nothing special >>>>>>>>>>> about the >>>>>>>>>>> config, but the old app works fine and the brand new one >>>>>>>>>>> doesn''t. >>>>>>>>>> >>>>>>>>>> The only diff would be in ~/spec/spec_helper.rb. Any >>>>>>>>>> differences in there? >>>>>>>>> >>>>>>>>> It''s something to do with Rails...my old app didn''t have the >>>>>>>>> very >>>>>>>>> latest edge. r5734 works fine, and the latest doesn''t. I''m >>>>>>>>> gonna >>>>>>>>> step through the revisions to find out just what broke RSpec. >>>>>>>>> >>>>>>>>> Pat >>>>>>>>> >>>>>>>> >>>>>>>> Okay, Rails edge r5738 breaks it. The changeset is at >>>>>>>> http://dev.rubyonrails.org/changeset/5720 >>>>>>>> >>>>>>>> You can''t replicate it in the demo app because of how the app >>>>>>>> loads >>>>>>>> everything (I guess). The demo app doesn''t break at all, >>>>>>>> but if >>>>>>>> you''ve just installed rspec as a plugin and the Rails plugin >>>>>>>> then it >>>>>>>> breaks at 5738. >>>>>>>> >>>>>>>> Pat >>>>>>>> >>>>>>> >>>>>>> Sorry, changeset should be http://dev.rubyonrails.org/changeset/ >>>>>>> 5738 >>>>>>> >>>>>>> The problem is that initializer.rb is no longer calling >>>>>>> >>>>>>> paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] >>>>>>> >>>>>>> in the default_load_paths method. >>>>>>> >>>>>>> I''ve tried adding >>>>>>> >>>>>>> config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib >>>>>>> #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) >>>>>>> >>>>>>> to the config block in environment.rb but it''s not doing >>>>>>> anything. >>>>>>> >>>>>>> So I haven''t been able to fix it, but at least we have a place >>>>>>> to look. >>>>>>> >>>>>>> Pat >>>>>>> >>>>>> >>>>>> Has to do with some path issues, the rake tasks got broken. >>>>>> Patch on the way. >>>>> >>>>> An rspec patch or a rails patch? >>>>> >>>> >>>> >>>> RSpec. I accidentally filed it in bugs, but >>>> https://rubyforge.org/tracker/index.php? >>>> func=detail&aid=7393&group_id=797&atid=3149 >>>> has the info and the patch. >>>> >>>> Over all pretty simple, but it was a bitch to figure out. No >>>> errors >>>> or anything...Rails just silently ignored the task file. >>> >>> Nice work Pat. Thanks. >>> >>> I moved it to patches and will commit it later today. >>> >>> Cheers, >>> David >>> >>>> >>>> Pat >>>> _______________________________________________ >>>> 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
ah well, it was worth a try - thanks for the extremely clear response :) thanks, - David On 21/12/2006, at 9:51 AM, David Chelimsky wrote:> On 12/20/06, David Lee <david at davelee.com.au> wrote: >> Should I take this flurry of concerted activity to mean that RSpec >> ( or at least a few committed committers ) now support edge rails, >> and people are using it fine for Edge projects ? > > NO, NO, NO, NO. There is absolutely NO guarantee or even formalized > attempt to keep up w/ edge rails. We do NOT recommend that you use > rspec_on_rails w/ anything other than the current stable release of > rails (1.1.6) unless YOU are prepared to maintain it yourself!!!!!! > > That said, we do try to keep up ;) > > Cheers, > David > v >> >> cheers, >> David >> >> On 21/12/2006, at 6:19 AM, David Chelimsky wrote: >> >>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: >>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>>>> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: >>>>>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: >>>>>>>>>>> Started a new Rails project, and installed RSpec and the >>>>>>>>>>> Rails plugin >>>>>>>>>>> vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/ >>>>>>>>>>> trunk/rspec) - 1332 >>>>>>>>>>> vendor/plugins/rspec_on_rails >>>>>>>>>>> (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/ >>>>>>>>>>> vendor/plugins/rspec_on_rails) >>>>>>>>>>> - 1332 >>>>>>>>>>> >>>>>>>>>>> Generated the rspec file, created a model...the spec runs >>>>>>>>>>> fine if I do >>>>>>>>>>> ruby spec/models/foo_spec.rb. Running rake though gives me >>>>>>>>>>> the >>>>>>>>>>> >>>>>>>>>>> Your RSpec on Rails plugin is incompatible with your >>>>>>>>>>> installed RSpec. >>>>>>>>>>> >>>>>>>>>>> RSpec : 0.7.5 (r1330) >>>>>>>>>>> RSpec on Rails : r1332 >>>>>>>>>>> >>>>>>>>>>> error. So apparently it''s looking at the gem rspec instead >>>>>>>>>>> of the one >>>>>>>>>>> I installed in my plugins folder. I''ve got an existing >>>>>>>>>>> Rails app that >>>>>>>>>>> uses edge RSpec, so I updated it to see if it broke, but it >>>>>>>>>>> runs fine. >>>>>>>>>>> I''m really really confused, I can''t tell what the >>>>>>>>>>> difference is. >>>>>>>>>>> Both apps are at the same revision, there''s nothing special >>>>>>>>>>> about the >>>>>>>>>>> config, but the old app works fine and the brand new one >>>>>>>>>>> doesn''t. >>>>>>>>>> >>>>>>>>>> The only diff would be in ~/spec/spec_helper.rb. Any >>>>>>>>>> differences in there? >>>>>>>>> >>>>>>>>> It''s something to do with Rails...my old app didn''t have the >>>>>>>>> very >>>>>>>>> latest edge. r5734 works fine, and the latest doesn''t. I''m >>>>>>>>> gonna >>>>>>>>> step through the revisions to find out just what broke RSpec. >>>>>>>>> >>>>>>>>> Pat >>>>>>>>> >>>>>>>> >>>>>>>> Okay, Rails edge r5738 breaks it. The changeset is at >>>>>>>> http://dev.rubyonrails.org/changeset/5720 >>>>>>>> >>>>>>>> You can''t replicate it in the demo app because of how the app >>>>>>>> loads >>>>>>>> everything (I guess). The demo app doesn''t break at all, >>>>>>>> but if >>>>>>>> you''ve just installed rspec as a plugin and the Rails plugin >>>>>>>> then it >>>>>>>> breaks at 5738. >>>>>>>> >>>>>>>> Pat >>>>>>>> >>>>>>> >>>>>>> Sorry, changeset should be http://dev.rubyonrails.org/changeset/ >>>>>>> 5738 >>>>>>> >>>>>>> The problem is that initializer.rb is no longer calling >>>>>>> >>>>>>> paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] >>>>>>> >>>>>>> in the default_load_paths method. >>>>>>> >>>>>>> I''ve tried adding >>>>>>> >>>>>>> config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib >>>>>>> #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) >>>>>>> >>>>>>> to the config block in environment.rb but it''s not doing >>>>>>> anything. >>>>>>> >>>>>>> So I haven''t been able to fix it, but at least we have a place >>>>>>> to look. >>>>>>> >>>>>>> Pat >>>>>>> >>>>>> >>>>>> Has to do with some path issues, the rake tasks got broken. >>>>>> Patch on the way. >>>>> >>>>> An rspec patch or a rails patch? >>>>> >>>> >>>> >>>> RSpec. I accidentally filed it in bugs, but >>>> https://rubyforge.org/tracker/index.php? >>>> func=detail&aid=7393&group_id=797&atid=3149 >>>> has the info and the patch. >>>> >>>> Over all pretty simple, but it was a bitch to figure out. No >>>> errors >>>> or anything...Rails just silently ignored the task file. >>> >>> Nice work Pat. Thanks. >>> >>> I moved it to patches and will commit it later today. >>> >>> Cheers, >>> David >>> >>>> >>>> Pat >>>> _______________________________________________ >>>> 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
David, I''ve been developing on edge rails for months and using rspec plugin (latest release, updating as soon as another is released) for at least one month and rarely have trouble. If you can, I''d say do it because it may flush out stuff that wouldn''t be seen otherwise. If it really breaks, you can always revert to last release (unless you can''t live without edge features, which is why I use it). One thing I do, I link to a particular version of edge, not just trunk. That way I can update it when convenient. Cheers, Brian On 12/20/06, David Lee <david at davelee.com.au> wrote:> ah well, it was worth a try - thanks for the extremely clear response :) > > thanks, > > - David > > > > On 21/12/2006, at 9:51 AM, David Chelimsky wrote: > > > On 12/20/06, David Lee <david at davelee.com.au> wrote: > >> Should I take this flurry of concerted activity to mean that RSpec > >> ( or at least a few committed committers ) now support edge rails, > >> and people are using it fine for Edge projects ? > > > > NO, NO, NO, NO. There is absolutely NO guarantee or even formalized > > attempt to keep up w/ edge rails. We do NOT recommend that you use > > rspec_on_rails w/ anything other than the current stable release of > > rails (1.1.6) unless YOU are prepared to maintain it yourself!!!!!! > > > > That said, we do try to keep up ;) > > > > Cheers, > > David > > v > >> > >> cheers, > >> David > >> > >> On 21/12/2006, at 6:19 AM, David Chelimsky wrote: > >> > >>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > >>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>>>>>> On 12/20/06, David Chelimsky <dchelimsky at gmail.com> wrote: > >>>>>>>>>> On 12/20/06, Pat Maddox <pergesu at gmail.com> wrote: > >>>>>>>>>>> Started a new Rails project, and installed RSpec and the > >>>>>>>>>>> Rails plugin > >>>>>>>>>>> vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/ > >>>>>>>>>>> trunk/rspec) - 1332 > >>>>>>>>>>> vendor/plugins/rspec_on_rails > >>>>>>>>>>> (svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails/ > >>>>>>>>>>> vendor/plugins/rspec_on_rails) > >>>>>>>>>>> - 1332 > >>>>>>>>>>> > >>>>>>>>>>> Generated the rspec file, created a model...the spec runs > >>>>>>>>>>> fine if I do > >>>>>>>>>>> ruby spec/models/foo_spec.rb. Running rake though gives me > >>>>>>>>>>> the > >>>>>>>>>>> > >>>>>>>>>>> Your RSpec on Rails plugin is incompatible with your > >>>>>>>>>>> installed RSpec. > >>>>>>>>>>> > >>>>>>>>>>> RSpec : 0.7.5 (r1330) > >>>>>>>>>>> RSpec on Rails : r1332 > >>>>>>>>>>> > >>>>>>>>>>> error. So apparently it''s looking at the gem rspec instead > >>>>>>>>>>> of the one > >>>>>>>>>>> I installed in my plugins folder. I''ve got an existing > >>>>>>>>>>> Rails app that > >>>>>>>>>>> uses edge RSpec, so I updated it to see if it broke, but it > >>>>>>>>>>> runs fine. > >>>>>>>>>>> I''m really really confused, I can''t tell what the > >>>>>>>>>>> difference is. > >>>>>>>>>>> Both apps are at the same revision, there''s nothing special > >>>>>>>>>>> about the > >>>>>>>>>>> config, but the old app works fine and the brand new one > >>>>>>>>>>> doesn''t. > >>>>>>>>>> > >>>>>>>>>> The only diff would be in ~/spec/spec_helper.rb. Any > >>>>>>>>>> differences in there? > >>>>>>>>> > >>>>>>>>> It''s something to do with Rails...my old app didn''t have the > >>>>>>>>> very > >>>>>>>>> latest edge. r5734 works fine, and the latest doesn''t. I''m > >>>>>>>>> gonna > >>>>>>>>> step through the revisions to find out just what broke RSpec. > >>>>>>>>> > >>>>>>>>> Pat > >>>>>>>>> > >>>>>>>> > >>>>>>>> Okay, Rails edge r5738 breaks it. The changeset is at > >>>>>>>> http://dev.rubyonrails.org/changeset/5720 > >>>>>>>> > >>>>>>>> You can''t replicate it in the demo app because of how the app > >>>>>>>> loads > >>>>>>>> everything (I guess). The demo app doesn''t break at all, > >>>>>>>> but if > >>>>>>>> you''ve just installed rspec as a plugin and the Rails plugin > >>>>>>>> then it > >>>>>>>> breaks at 5738. > >>>>>>>> > >>>>>>>> Pat > >>>>>>>> > >>>>>>> > >>>>>>> Sorry, changeset should be http://dev.rubyonrails.org/changeset/ > >>>>>>> 5738 > >>>>>>> > >>>>>>> The problem is that initializer.rb is no longer calling > >>>>>>> > >>>>>>> paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] > >>>>>>> > >>>>>>> in the default_load_paths method. > >>>>>>> > >>>>>>> I''ve tried adding > >>>>>>> > >>>>>>> config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/rspec/lib > >>>>>>> #{RAILS_ROOT}/vendor/plugins/rspec_on_rails/lib ) > >>>>>>> > >>>>>>> to the config block in environment.rb but it''s not doing > >>>>>>> anything. > >>>>>>> > >>>>>>> So I haven''t been able to fix it, but at least we have a place > >>>>>>> to look. > >>>>>>> > >>>>>>> Pat > >>>>>>> > >>>>>> > >>>>>> Has to do with some path issues, the rake tasks got broken. > >>>>>> Patch on the way. > >>>>> > >>>>> An rspec patch or a rails patch? > >>>>> > >>>> > >>>> > >>>> RSpec. I accidentally filed it in bugs, but > >>>> https://rubyforge.org/tracker/index.php? > >>>> func=detail&aid=7393&group_id=797&atid=3149 > >>>> has the info and the patch. > >>>> > >>>> Over all pretty simple, but it was a bitch to figure out. No > >>>> errors > >>>> or anything...Rails just silently ignored the task file. > >>> > >>> Nice work Pat. Thanks. > >>> > >>> I moved it to patches and will commit it later today. > >>> > >>> Cheers, > >>> David > >>> > >>>> > >>>> Pat > >>>> _______________________________________________ > >>>> 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 > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 12/20/06, brian ford <brixen at gmail.com> wrote:> David, > > I''ve been developing on edge rails for months and using rspec plugin > (latest release, updating as soon as another is released) for at least > one month and rarely have trouble. > > If you can, I''d say do it because it may flush out stuff that wouldn''t > be seen otherwise. If it really breaks, you can always revert to last > release (unless you can''t live without edge features, which is why I > use it). > > One thing I do, I link to a particular version of edge, not just > trunk. That way I can update it when convenient.I know RSpec may not officially be keeping up with edge rails, but they do a very good job of it regardless. I use edge everything, so when something breaks I try to get a patch in as well. If you want to use rspec entirely without any hassles, it''s probably best not to use edge. Use the latest rspec, freeze rails to a certain revision, and develop away. If you don''t mind the occasional problem, use edge everything, because it''ll help us make rspec better. Pat
thanks for the advice guys, I''ve been using test::unit on a frozen rev of edge rails - might consider switching as long as i don''t hit any immediate hitches. I do recall starting this project with RSpec and changing to Test::Unit becuase something wasn''t working, but I''ll try again given you''re reporting reasonable success hmm .. is that test::unit to rspec conversion tool still supported? I can''t seem to find it locally and it would make evaluating a switch to RSpec a lot easier. I heard mutterings about discontinuing it earlier, but don''t recall what happened cheers, David Lee On 21/12/2006, at 3:20 PM, Pat Maddox wrote:> On 12/20/06, brian ford <brixen at gmail.com> wrote: >> David, >> >> I''ve been developing on edge rails for months and using rspec plugin >> (latest release, updating as soon as another is released) for at >> least >> one month and rarely have trouble. >> >> If you can, I''d say do it because it may flush out stuff that >> wouldn''t >> be seen otherwise. If it really breaks, you can always revert to last >> release (unless you can''t live without edge features, which is why I >> use it). >> >> One thing I do, I link to a particular version of edge, not just >> trunk. That way I can update it when convenient. > > I know RSpec may not officially be keeping up with edge rails, but > they do a very good job of it regardless. I use edge everything, so > when something breaks I try to get a patch in as well. > > If you want to use rspec entirely without any hassles, it''s probably > best not to use edge. Use the latest rspec, freeze rails to a certain > revision, and develop away. If you don''t mind the occasional problem, > use edge everything, because it''ll help us make rspec better. > > Pat > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
aslak hellesoy
2006-Dec-22 17:25 UTC
[rspec-users] Edge RSpec on Rails...what did I forget?
On 12/21/06, David Lee <david at davelee.com.au> wrote:> thanks for the advice guys, > > I''ve been using test::unit on a frozen rev of edge rails - might > consider switching as long as i don''t hit any immediate hitches. > > I do recall starting this project with RSpec and changing to > Test::Unit becuase something wasn''t working, but I''ll try again given > you''re reporting reasonable success > > hmm .. > > is that test::unit to rspec conversion tool still supported? I can''t > seem to find it locally and it would make evaluating a switch to > RSpec a lot easier. > > I heard mutterings about discontinuing it earlier, but don''t recall > what happened >It''s been decommissioned. It was too much work to maintain.> cheers, > David Lee > > On 21/12/2006, at 3:20 PM, Pat Maddox wrote: > > > On 12/20/06, brian ford <brixen at gmail.com> wrote: > >> David, > >> > >> I''ve been developing on edge rails for months and using rspec plugin > >> (latest release, updating as soon as another is released) for at > >> least > >> one month and rarely have trouble. > >> > >> If you can, I''d say do it because it may flush out stuff that > >> wouldn''t > >> be seen otherwise. If it really breaks, you can always revert to last > >> release (unless you can''t live without edge features, which is why I > >> use it). > >> > >> One thing I do, I link to a particular version of edge, not just > >> trunk. That way I can update it when convenient. > > > > I know RSpec may not officially be keeping up with edge rails, but > > they do a very good job of it regardless. I use edge everything, so > > when something breaks I try to get a patch in as well. > > > > If you want to use rspec entirely without any hassles, it''s probably > > best not to use edge. Use the latest rspec, freeze rails to a certain > > revision, and develop away. If you don''t mind the occasional problem, > > use edge everything, because it''ll help us make rspec better. > > > > Pat > > _______________________________________________ > > 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 >