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
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
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
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
4 matches
Mail list logo