slagyr / speclj

pronounced "speckle": a TDD/BDD framework for Clojure.
MIT License
459 stars 58 forks source link

How do you test preconditions? #49

Closed thesoftwarephilosopher closed 11 years ago

thesoftwarephilosopher commented 11 years ago

I did (should-throw Exception (something-with-failing-precondition)) and amidst the speclj output, there's a message about an Assert failure.

slagyr commented 11 years ago

This is a problem with recent versions of Speclj. We started using java.lang.AssertError as the failing exception so that 3rd party assertion libraries could be used. As you've discovered, this was not such a great idea after all. We'll be reverting back to a custom failure exception in the next release.

Micah

On May 27, 2013, at 8:43 PM, "Please," notifications@github.com wrote:

I did (should-throw Exception (something-with-failing-precondition)) and amidst the speclj output, there's a message about an Assert failure.

— Reply to this email directly or view it on GitHub.

slagyr commented 11 years ago

resolved in 2.8.1

thesoftwarephilosopher commented 11 years ago

woo!