I want to speed up my model tests. After seeing this
http://iain.nl/testing-activerecord-in-isolation, I thought it could
be achieved if i can only require the active_record rather than
loading the spec_helper.rb, which loads the whole Rails stack for
every test file.

I am using rspec-rails with factory_girl.

But so far its not working for me. Every time i run a single file the
whole migrations are getting run, which is not acceptable.And before
the whole migrations run i am getting some errors.

Anybody have a better idea?

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-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
postedNov 26, '12 at 1:58p
activeNov 26, '12 at 2:30p

2 users in discussion

Venkata reddy: 1 post Jordon Bedwell: 1 post



site design / logo © 2021 Grokbase