redding / assert

Assertion style testing framework.
https://github.com/redding/assert
MIT License
10 stars 1 forks source link

Add should method to context #13

Closed jcredding closed 13 years ago

jcredding commented 13 years ago

Context should have a class method should that takes a string and a block. This should create a new test similarly to how a method named test_* works.

jcredding commented 13 years ago

I've pushed a basic implementation of this into master. It doesn't do any of the matcher stuff that the test-belt version did. We can discuss that, but if you want to put those into their own gem, I'd say we should have it define a new should method that can super up to this basic one.