Skip to content

Instantly share code, notes, and snippets.

@jonleighton
Created January 23, 2012 21:44
Show Gist options
  • Select an option

  • Save jonleighton/1665683 to your computer and use it in GitHub Desktop.

Select an option

Save jonleighton/1665683 to your computer and use it in GitHub Desktop.
$ 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
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