nulldb/nulldb — pull request #14 by woahdae (2011-11-13 21:23:47+00:00)
Title: Pull Rails-oriented code out of main code body

so that testing the RSpec integration doesn't require a Rails
environment or monkey-patching.

I can't test the rspec integration w/o stubbing some rails code, so I thought I'd see what it would take to pull the rails-specific code into a separate file.

I like the implementation in this commit for the most part, except adding a configure block might be a bit premature. I could have done the same thing with a NullDB class method, but I think this communicates intent better.

Thoughts?

If this looks good, I can merge in some tests and a fix for #11, as well as think about replicating #4 with a test.