summaryrefslogtreecommitdiffstats
path: root/spec/helper.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-09 14:01:57 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-09 14:01:57 +0200
commit601f74881e06a85e57d9799c57512f8b587b59fd (patch)
tree94176da1b12a625726f9cea4d02f8236a38c9046 /spec/helper.rb
parente6f6ad8072532f879aaaffddebdbd0be4b749285 (diff)
downloadffi-efl-601f74881e06a85e57d9799c57512f8b587b59fd.zip
ffi-efl-601f74881e06a85e57d9799c57512f8b587b59fd.tar.gz
cleanup specs
Diffstat (limited to 'spec/helper.rb')
-rw-r--r--spec/helper.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/helper.rb b/spec/helper.rb
index 6b9c849..efdc2b3 100644
--- a/spec/helper.rb
+++ b/spec/helper.rb
@@ -44,6 +44,19 @@ def bool_check t, fct, delay=nil
t.send(fct+'_get').should be_false
end
#
+def char_check t, fct, delay=nil
+ t.send fct+'_set', "char1"
+ ecore_loop delay if delay
+ t.send(fct).should == "char1"
+ t.send(fct+'?').should == "char1"
+ t.send(fct+'_get').should == "char1"
+ t.send fct+'=', "char2"
+ ecore_loop delay if delay
+ t.send(fct).should == "char2"
+ t.send(fct+'?').should == "char2"
+ t.send(fct+'_get').should == "char2"
+end
+#
def realize_win
@win = Elm::ElmWin.new(nil, 'TEST') do |w|
w.title= 'spec win'