redding / assert

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

add expectation API #291

Closed kellyredding closed 3 years ago

kellyredding commented 6 years ago

This is for users who prefer the .must* assertion api over the assert* api. I'm thinking an API to turn a value into an expectation (similar to value() in Minitest spec). Expectation objects have all of the .must* methods on them. They would generate results just like the assertion methods.

Anyway, something to think about.

kellyredding commented 3 years ago

Done, see assert_that(...).{equals|etc}(...): https://github.com/redding/assert/pull/297