Moved all controller logic out of board.
[kaya/ydirson.git] / test / test_utils.rb
blob19fd484d05c58957e0ef39053dd8bd34180edef8
1 require 'test/unit'
2 require 'rubygems'
3 require 'mocha'
4 require 'qtutils'
6 class TestQtUtils < Test::Unit::TestCase
7   def test_painter_bracket
8     p = Qt::Painter.new
9     p.expects(:fill_rect).once
10     p.expects(:end).once
11     
12     p.paint do |painter|
13       painter.fill_rect
14     end
15   end
16 end