hi all I''m trying to use spec_server to run my specs in rails, but the specs don''t seem to be running any faster, and it looks like they''re being run twice when I use the --drb option ..? The app I''m testing is just a basic rails app with 2 empty models and a hello world controller. The specs are just the default ones created by the generators. I was previously using rspec 0.8.2 and those specs ran a LOT faster. does anyone know what the problem might be? thanks dave x at holly:~/rails/allison$ ruby script/spec spec/models ... Finished in 0.057578 seconds 3 examples, 0 failures *** now with the --drb option and spec_server running *** x at holly:~/rails/allison$ ruby script/spec spec/models --drb ... Finished in 0.067976 seconds 3 examples, 0 failures ... Finished in 0.064153 seconds 3 examples, 0 failures x at holly:~/rails/allison$
On May 15, 2007, at 4:29 AM, David Green wrote:> hi all > > I''m trying to use spec_server to run my specs in rails, but the specs > don''t seem to be running any faster, and it looks like they''re being > run twice when I use the --drb option ..? The app I''m testing is just > a basic rails app with 2 empty models and a hello world controller. > The specs are just the default ones created by the generators. >Well, this was a bug fixed in trunk recently. You may want to run an ''svn update'' if you have rspec on externals, or run ./script/plugin install again. This should help speed up the running of the specs. The difference in performance is caused by the bug. I''ve also learned that on my Mac G4 Dual 800, closing Mail.app and other running programs can dramatically speed up my specs. Let us know if that helps, Scott> I was previously using rspec 0.8.2 and those specs ran a LOT faster. > does anyone know what the problem might be? > > thanks > dave > > > x at holly:~/rails/allison$ ruby script/spec spec/models > ... > > Finished in 0.057578 seconds > > 3 examples, 0 failures > > *** now with the --drb option and spec_server running *** > > x at holly:~/rails/allison$ ruby script/spec spec/models --drb > ... > > Finished in 0.067976 seconds > > 3 examples, 0 failures > ... > > Finished in 0.064153 seconds > > 3 examples, 0 failures > x at holly:~/rails/allison$ > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
On 15/05/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > Well, this was a bug fixed in trunk recently. You may want to run an > ''svn update'' if you have rspec on externals, or run ./script/plugin > install again. This should help speed up the running of the specs. > > The difference in performance is caused by the bug. > > I''ve also learned that on my Mac G4 Dual 800, closing Mail.app and > other running programs can dramatically speed up my specs. > > Let us know if that helps, > > Scottthanks for your reply Scott, but no joy I''m afraid. I tried again with a new rails app and just a generated User model, following the instructions at http://rspec.rubyforge.org/documentation/rails/install.html I get the same result.
On 5/15/07, David Green <pocketsized at tiscali.co.uk> wrote:> On 15/05/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > > > > Well, this was a bug fixed in trunk recently. You may want to run an > > ''svn update'' if you have rspec on externals, or run ./script/plugin > > install again. This should help speed up the running of the specs. > > > > The difference in performance is caused by the bug. > > > > I''ve also learned that on my Mac G4 Dual 800, closing Mail.app and > > other running programs can dramatically speed up my specs. > > > > Let us know if that helps, > > > > Scott > > thanks for your reply Scott, but no joy I''m afraid. I tried again with > a new rails app and just a generated User model, following the > instructions at > http://rspec.rubyforge.org/documentation/rails/install.htmlDavid - did you follow the instructions for getting the trunk or the current release? You''ll need the trunk to get this bugfix as it has not been released yet.> > I get the same result. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 15/05/07, David Chelimsky <dchelimsky at gmail.com> wrote:> David - did you follow the instructions for getting the trunk or the > current release? You''ll need the trunk to get this bugfix as it has > not been released yet. >oops. I thought I''d followed instructions for trunk but it was in fact the 0.9.4 release (yet another reason not to blindly copy/paste). thanks for your help David, it works now.
On 5/15/07, David Green <pocketsized at tiscali.co.uk> wrote:> On 15/05/07, David Chelimsky <dchelimsky at gmail.com> wrote: > > David - did you follow the instructions for getting the trunk or the > > current release? You''ll need the trunk to get this bugfix as it has > > not been released yet. > > > > oops. I thought I''d followed instructions for trunk but it was in fact > the 0.9.4 release (yet another reason not to blindly copy/paste). > thanks for your help David, it works now.Great. Enjoy.> _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >