Pending in minitest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # in your test_helper.rb | |
| def pending | |
| begin | |
| yield | |
| fail "OMG pending test passed." | |
| rescue MiniTest::Assertion | |
| skip "Still pending" | |
| end | |
| end | |
| # in your foo_test.rb | |
| pending do | |
| assert false | |
| end |
I use
def test_whatever
# ...
flunk "not done yet"
end
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FWIW, I would prefer something like this:
Test style:
Spec style:
/cc @zenspider