Class: TestTester
- Inherits:
-
MiniTest::Test
- Object
- MiniTest::Test
- TestTester
- Defined in:
- /Users/martyn/cw/cw_clone/test/test_tester.rb
Constant Summary
- ROOT =
File. File.dirname(__FILE__) + '/../'
Instance Method Summary (collapse)
- - (Object) setup
- - (Object) teardown
- - (Object) test_audio_instantiates_AudioPlayer_object
- - (Object) test_print_instantiates_Print_object
- - (Object) test_quit
- - (Boolean) test_quit?
- - (Object) test_timing_instantiates_Timing_object
- - (Object) test_whatever
Instance Method Details
- (Object) setup
11 12 13 14 |
# File '/Users/martyn/cw/cw_clone/test/test_tester.rb', line 11 def setup @object = CWG::Tester.new end |
- (Object) teardown
16 17 18 |
# File '/Users/martyn/cw/cw_clone/test/test_tester.rb', line 16 def teardown @cw = nil end |
- (Object) test_audio_instantiates_AudioPlayer_object
43 44 45 |
# File '/Users/martyn/cw/cw_clone/test/test_tester.rb', line 43 def test_audio_instantiates_AudioPlayer_object assert_equal CWG::AudioPlayer, @object.audio.class end |
- (Object) test_print_instantiates_Print_object
35 36 37 |
# File '/Users/martyn/cw/cw_clone/test/test_tester.rb', line 35 def test_print_instantiates_Print_object assert_equal CWG::Print, @object.print.class end |
- (Object) test_quit
29 30 31 32 33 |
# File '/Users/martyn/cw/cw_clone/test/test_tester.rb', line 29 def test_quit assert_nil @object.quit? @object.quit assert @object.quit? end |
- (Boolean) test_quit?
24 25 26 27 |
# File '/Users/martyn/cw/cw_clone/test/test_tester.rb', line 24 def test_quit? @object.instance_eval('@quit = :quit') assert_equal :quit, @object.quit? end |
- (Object) test_timing_instantiates_Timing_object
39 40 41 |
# File '/Users/martyn/cw/cw_clone/test/test_tester.rb', line 39 def test_timing_instantiates_Timing_object assert_equal CWG::Timing, @object.timing.class end |
- (Object) test_whatever
20 21 22 |
# File '/Users/martyn/cw/cw_clone/test/test_tester.rb', line 20 def test_whatever assert true end |