summaryrefslogtreecommitdiffstats
path: root/spec/helper.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 12:35:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 12:35:53 +0100
commit158d6652a78d74b7e2fa5b7c13a4abddd8b22cf5 (patch)
treed2ce9626b507227452671016fa24c8de3d02c5a2 /spec/helper.rb
parent63df15daae7a3b86478d635128e814149918bb09 (diff)
downloadffi-efl-158d6652a78d74b7e2fa5b7c13a4abddd8b22cf5.zip
ffi-efl-158d6652a78d74b7e2fa5b7c13a4abddd8b22cf5.tar.gz
add elm_spec
Diffstat (limited to 'spec/helper.rb')
-rw-r--r--spec/helper.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/helper.rb b/spec/helper.rb
index 9bfab78..eb98117 100644
--- a/spec/helper.rb
+++ b/spec/helper.rb
@@ -59,15 +59,15 @@ def char_check t, fct, delay=nil
end
#
def realize_win
- @win = Elm::ElmWin.new(nil, 'TEST') do |w|
- w.title= 'spec win'
- w.move 100, 100
- w.resize 100, 100
+ @win = Elm::ElmWin.new(nil, 'TEST') do
+ title= 'spec win'
+ move 100, 100
+ resize 100, 100
end
- @bg = Elm::ElmBg.new(@win) do |bg|
- bg.size_hint_weight_set 1.0, 1.0
- bg.evas_object_color_set 200,255,100,150
- bg.show
+ @bg = Elm::ElmBg.new(@win) do
+ size_hint_weight_set 1.0, 1.0
+ evas_object_color_set 200,255,100,150
+ show
end
@win.show
end