test/test_graphics.rb in processing-0.5.30 vs test/test_graphics.rb in processing-0.5.31

- old
+ new

@@ -1,16 +1,10 @@ require_relative 'helper' class TestGraphics < Test::Unit::TestCase - P = Processing - - def graphics(w = 10, h = 10) - P::Graphics.new w, h - end - def test_beginDraw() g = graphics g.beginDraw assert_raise {g.beginDraw} end @@ -22,10 +16,10 @@ g.fill 255 g.stroke 0 g.ellipseMode :corner g.ellipse 0, 0, g.width, g.height end - temppath(ext: 'png') do |path| + temp_path(ext: '.png') do |path| assert_nothing_raised {g.save path} assert_equal_pixels g, g.loadImage(path) end end