test/test-painter.rb in shogi_koma-0.0.2 vs test/test-painter.rb in shogi_koma-0.0.3

- old
+ new

@@ -17,9 +17,24 @@ def test_three_characters assert_nothing_raised_in_draw("ABC") end + def test_body_color_with_rgb + @painter.set_body_rgb(0.2, 0.2, 0.2) + assert_nothing_raised_in_draw("D") + end + + def test_text_color_with_name + @painter.set_text_color(:deep_pink) + assert_nothing_raised_in_draw("E") + end + + def test_text_color_with_hex + @painter.set_text_color("#ACE") + assert_nothing_raised_in_draw("G") + end + private def assert_nothing_raised_in_draw(text) width = 200 height = 200 assert_nothing_raised do