[Rails] Re: [ANN] NullDB 0.0.1

2010-08-03 Thread Eric Schmitt
Marnen Laibow-Koser wrote: Avdi Grimm wrote: == What NullDB is a Rails database connection adapter that interprets common database operations as no-ops. It is the Null Object pattern as applied to database adapters. [...] == Why NullDB is intended to assist in writing fast

[Rails] Re: [ANN] NullDB 0.0.1

2010-08-03 Thread Eric Schmitt
I'm fairly new to unit testing and TDD, but I think I understand the concept of what they're talking about here. The point is that if you are writing to the database during unit tests, you're actually testing the database adapter and abstraction layer, in this case: ActiveRecord, and not

[Rails] Re: [ANN] NullDB 0.0.1

2010-08-03 Thread Eric Schmitt
Marnen, You make some interesting points... I think I still have a ton to learn about unit testing and TDD best practices. I'm still just getting started. Thanks for the info! Warmest Regards, Eric -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: [ANN] NullDB 0.0.1

2010-08-02 Thread Eric Schmitt
Avdi Grimm wrote: Ed Howland wrote: Avdi, This sounds like a cool idea. One question. Would the usage pattern then be to use a mock/stub for the find methods and let the other save methods fall though to the NullDB connector? Yes, that's accurate. Check the documentation for the latest