test/around_test.rb in minitest-around-0.0.6.pre vs test/around_test.rb in minitest-around-0.1.0.pre

- old
+ new

@@ -1,15 +1,15 @@ require 'minitest/autorun' -require 'minitest/around/unit' +require 'minitest/around' -class TestWithoutAround < MiniTest::Unit::TestCase +class TestWithoutAround < Minitest::Test def test_no_around_defined assert true end end -class TestWithoutArgs < MiniTest::Unit::TestCase +class TestWithoutArgs < Minitest::Test def around $before = true yield $before = false # hard to test? end @@ -17,20 +17,20 @@ def test_runs_around assert_equal true, $before end end -class TestWithSingleArg < MiniTest::Unit::TestCase +class TestWithSingleArg < Minitest::Test def around yield "string" end def test_around_passes_string(string) assert_equal "string", string end end -class TestWithMultipleArgs < MiniTest::Unit::TestCase +class TestWithMultipleArgs < Minitest::Test def around yield 1, 2 end def test_passes_multiple_args(a, b)