I'll try updating the version of rspec-rails. Thanks for that!

I'm using jetbrans's rubymine. I'm used to IDEA, so I'm right at home
with RubyMine. I'm using the latest EAP that works with ruby 1.9 and
rails 3.

On Oct 9, 11:02 pm, David Chelimsky <dchelim...@gmail.com> wrote:
> On Oct 9, 9:29 pm, egervari <ken.egerv...@gmail.com> wrote:
>
> > Okay, I admit and I newbie when it comes to this stuff. I'm using
> > Rails 3 (latest) and I put this line in my Gemfile:
>
> > group :test do
> >   gem 'rspec-rails'
> > end
>
> > I'm guessing that's going to get the latest version of rspec-rails.
>
> Actually that gets the latest production release of rspec-rails, which
> is rspec-rails-1.3.3 (as of about 10 minutes ago).
>
> What you want is rspec-rails-2.0.0.rc, and you want to include it in
> both development and test groups:
>
> group :development, :test do
>   gem 'rspec-rails', '>= 2.0.0.rc'
> end
>
> > As for other questions, I'm running Ruby 1.9.1 on Windows 7 64-bit
> > (not exactly the best OS for out-of-the-box working and stable use of
> > Ruby, I know).
>
> Yeah - I've given up trying to run ruby on windows. It's just so much
> better on Linux or Mac OS. There are plenty of people here, more brave
> than I, however, who can help you in that area.
>
> > In my IDE, If I run the same could out of RSpec, it is basically
> > instant. If I run RSpec, it reports that the test only took 5 seconds,
> > but the entire execution was 20 seconds. If I had more dummy tests in
> > the same Spec file, it is basically instant. So my guess is that 15
> > seconds is used by Rails and 5 seconds is used by RSpec? My guess is
> > that the actual code in the tests is a few milliseconds.
>
> 5 seconds is painfully long for 1 example. Once you've paid the
> startup debt (which comes from a combination of rspec, rails,
> bundler), it should be < 0.001 seconds for one example unless you're
> connecting to an external service of some sort. Although that's what
> I'm seeing on Mac/Linux. Any Windows users wanna report on the times
> you're seeing?
>
> What IDE are you using?
>
>
>
> > On Oct 9, 10:22 pm, David Chelimsky <dchelim...@gmail.com> wrote:
>
> > > On Oct 9, 8:32 pm, egervari <ken.egerv...@gmail.com> wrote:
>
> > > > I'm just learning my way through ruby and rails to learn it. One thing
> > > > I noticed is that testing 1 spec class with 1 test takes about 20
> > > > seconds. It's not even using any rails functionality at all. I am just
> > > > concatenating some strings together and doing some math...
>
> > > > Contrast this with JUnit or ScalaTest... and I could have ran an
> > > > entire suit of thousands of tests in this amount of time.
>
> > > > One of the reasons I hated grails (I played with it about a year ago)
> > > > was that tests ran rediculously slow, so the test/feedback cycle was
> > > > horrendous... and I just refused to put up with that.
>
> > > > People knock Java/Spring/Hibernate, but you can have a fully tiered,
> > > > database-driven app that populates 100-150 rows of data per test that
> > > > runs 1000+ tests in under 60 seconds.
>
> > > > Given that knowledge... 20 seconds for 1 test that does nothing seems
> > > > very, very wrong. Any way I can speed this up?
>
> > > Even in the worst case I've experienced it's been a few seconds of
> > > start-up overhead, nothing close to 20. What versions of rspec and
> > > rails are you using? What command are you using to run the spec? What
> > > OS, ruby version, etc?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to