test/spec kicks simply_bdd's ass
Christian Neukirchen's "test/spec":http://chneukirchen.org/blog/archive/2006/10/announcing-test-spec-0-2-a-bdd-interface-for-test-unit.html is a worthy replacement of simply_bdd. Its context/specify methods work almost exactly the same way, and Chris has gone to the trouble of converting the test/unit assert_ methods to should. methods.
I've started a little "test/spec on rails":http://svn.techno-weenie.net/projects/plugins/test_spec_on_rails/init.rb plugin for implementing some rails-specific should extensions. It's very sparse right now, so patches are very welcome.
One other little experiment I added was specifying the chained should methods as a string:
# OLD
5.should.not.be.nil
5.should.not.equal 6
# NEW
5.should "not be nil"
5.should "not equal", 6
I don't know if I like that yet. But, I'm also not crazy about all the periods either.
related
- 2010 Aug 03 Protocol Buffers with Riak for Node.js
- 2010 Jul 13 In-Process Node.js Queues
- 2010 Jul 07 Geek Talk Interview
- 2010 Jun 28 Tee and Child Processes
- 2010 Jun 23 You can let go now
- 2010 May 17 Railsconf: Building APIs
- 2010 May 10 Nori: Node.js Riak wrapper
- 2010 May 10 No, I did not create a mobile phone framework too
- 2010 May 04 Escaping your test suite with your life
- 2010 Apr 05 Will the iPad kill comic books?

