22###############################################################################
33describe Thingy do # class TestThingy < Minitest::Test
44 before do # def setup
5- do_some_setup # super
6- end # do_some_setup
7- # end
8- it "should do the first thing" do #
9- 1 . must_equal 1 # def test_first_thing
10- end # assert_equal 1, 1
11- # end
12- describe SubThingy do # end
13- before do #
14- do_more_setup # class TestSubThingy < TestThingy
15- end # def setup
165 # super
17- it "should do the second thing" do # do_more_setup
18- 2 . must_equal 2 # end
19- end #
20- end # def test_second_thing
21- end # assert_equal 2, 2
22- # end
6+ do_some_setup # do_some_setup
7+ end # end
8+ #
9+ it "should do the first thing" do # def test_first_thing
10+ _ ( 1 ) . must_equal 1 # assert_equal 1, 1
11+ end # end
2312 # end
13+ #
14+ describe SubThingy do # class TestSubThingy < TestThingy
15+ before do # def setup
16+ # super
17+ do_more_setup # do_more_setup
18+ end # end
19+ #
20+ it "should do the second thing" do # def test_second_thing
21+ _ ( 2 ) . must_equal 2 # assert_equal 2, 2
22+ end # end
23+ end # end
24+ end #
25+ #
2426###############################################################################
2527# runs 2 specs # runs 3 tests
2628###############################################################################
@@ -33,7 +35,7 @@ def setup
3335 end
3436
3537 def test_should_do_the_first_thing
36- assert_equal 1 , 1
38+ _ ( 1 ) . must_equal 1
3739 end
3840end
3941
@@ -47,6 +49,6 @@ def setup
4749 remove_method :test_should_do_the_first_thing
4850
4951 def test_should_do_the_second_thing
50- assert_equal 2 , 2
52+ _ ( 2 ) . must_equal 2
5153 end
5254end
0 commit comments