diff options
| author | Teddy Wing | 2015-04-11 16:21:26 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-04-11 16:21:26 -0400 |
| commit | 189e854ed544b81f12773dea9996f1da66118cf9 (patch) | |
| tree | 142832f8aba0c155d740d3c9daf8b35e8194a4d4 /test | |
| parent | 1b762b4f977d2075c53e6df97f6d287ea6e5d80b (diff) | |
| download | tic-tac-toe-189e854ed544b81f12773dea9996f1da66118cf9.tar.bz2 | |
Create test_helper, add trial test for Board
* Add test_helper.rb for includes
* Add a test to sample test that initializes Board
Diffstat (limited to 'test')
| -rw-r--r-- | test/sample_test.rb | 8 | ||||
| -rw-r--r-- | test/test_helper.rb | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/test/sample_test.rb b/test/sample_test.rb index 88fbd6c..9948773 100644 --- a/test/sample_test.rb +++ b/test/sample_test.rb @@ -1,4 +1,4 @@ -require 'minitest/autorun' +require 'test_helper' class TestSample < Minitest::Unit::TestCase def setup @@ -8,3 +8,9 @@ class TestSample < Minitest::Unit::TestCase assert_equal 1 + 1, 2 end end + +class TestBoard < Minitest::Unit::TestCase + def test_board + Board.new + end +end diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..361f8b2 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,3 @@ +require 'minitest/autorun' + +require 'board' |
