diff options
| author | Teddy Wing | 2015-04-16 02:13:04 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-04-16 02:13:04 -0400 |
| commit | 6984fc31370564332ceab60c203cd6f1e695d61a (patch) | |
| tree | a53d6b3ecf3c1ba4f35fcd245c30757e1a266e11 /test | |
| parent | fa951e520b7637d9e67c31a0a8b61733e253f90b (diff) | |
| parent | 93351518faf3bb4f63b4a3cc1ef28f5c06e09f01 (diff) | |
| download | tic-tac-toe-master.tar.bz2 | |
Diffstat (limited to 'test')
| -rw-r--r-- | test/board_test.rb | 15 | ||||
| -rw-r--r-- | test/sample_test.rb | 8 | ||||
| -rw-r--r-- | test/test_helper.rb | 3 |
3 files changed, 25 insertions, 1 deletions
diff --git a/test/board_test.rb b/test/board_test.rb new file mode 100644 index 0000000..8aeaeab --- /dev/null +++ b/test/board_test.rb @@ -0,0 +1,15 @@ +require 'test_helper' + +class TestBoard < Minitest::Unit::TestCase + def setup + @board = Board.new + end + + def test_render + assert_equal @board.render, <<EOS +... +... +... +EOS + end +end 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' |
