Created
January 23, 2012 21:44
-
-
Save jonleighton/1665683 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| $ ruby test_foo.rb | |
| Run options: | |
| # Running tests: | |
| #<Method: FooTest(MiniTest::Assertions)#skip> | |
| S | |
| Finished tests in 0.000864s, 1157.4516 tests/s, 0.0000 assertions/s. | |
| 1) Skipped: | |
| test_foo(FooTest) [test_foo.rb:10]: | |
| skipped | |
| 1 tests, 0 assertions, 0 failures, 0 errors, 1 skips |
This file contains hidden or 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
| require 'test/unit' | |
| def skip(*) | |
| true | |
| end | |
| class FooTest < Test::Unit::TestCase | |
| def test_foo | |
| p method(:skip) | |
| assert skip("skipped") | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment