Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ffbddaee1d
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.512 kb
$: << File.expand_path('../../lib', __FILE__)
require 'test/unit'
require 'test_declarative'
class TestDeclarativeTest < Test::Unit::TestCase
def test_responds_to_test
assert self.class.respond_to?(:test)
end
def test_adds_a_test_method
called = false
assert_nothing_raised { Test::Unit::TestCase.test('some test') { called = true } }
Test::Unit::TestCase.new(:'test_some_test').run((RUBY_VERSION < '1.9.1' ? Test::Unit::TestResult : MiniTest::Unit).new) {}
assert called
end
end
Jump to Line
Something went wrong with that request. Please try again.