redding / assert

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

`suite` DSL method on context classes #171

Closed kellyredding closed 10 years ago

kellyredding commented 10 years ago

This adds a suite DSL method to the context class. Use this method to inject custom suite objects. The method defaults to Assert.suite if no custom suite has been specified and honors its superclass suite.

The main reason for doing this is that has no effect on the external API but allows for much easier and robust testing of contexts and their suite-related concerns without impacting live code.

Closes #163

@jcredding ready for review. No behavior changes - just test cleanups and reduced occurrence of Assert.suite.

jcredding commented 10 years ago

@kellyredding - Looks good :boom: I like the changes to the tests you mentioned early. Where we were saving off the before test count and then making sure one got added. It's simpler with these changes.