Sure. https://gist.github.com/1172821
There might be a nicer way to do this, but this does the trick for postgresql. On 26/08/2011, at 4:09 PM, Scott Harvey wrote: >> Monkey patch ActiveRecord in spec_helper to raise if you try and write to >> the database, this forces you not to use it. It changes the way you >> structure some of your code, usually for the better, but ultimately it means >> you have a very fast unit test suite. These tests are fast, hundreds of >> tests per second fast. > > Any chance you can share that patch so I can try it out for myself? > > Scott > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
