repo.or.cz
/
kaya
/
ydirson.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Moved all controller logic out of board.
[kaya/ydirson.git]
/
test
/
test_utils.rb
blob
19fd484d05c58957e0ef39053dd8bd34180edef8
1
require 'test/unit'
2
require 'rubygems'
3
require 'mocha'
4
require 'qtutils'
5
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