diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-18 10:22:55 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-18 10:22:55 +0200 |
commit | 8e9d5ca59eaef7e977857ebe39c086c966c556dd (patch) | |
tree | 48dac00564ff18f5ac66069f3b4fc87dfb6b3a65 /spec/edje_spec.rb | |
parent | 8ceeda9e767e3be64bcc2b41cc89e1cee3411e82 (diff) | |
download | ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.zip ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.tar.gz |
cleanup init/shutdown specs
Diffstat (limited to 'spec/edje_spec.rb')
-rw-r--r-- | spec/edje_spec.rb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/spec/edje_spec.rb b/spec/edje_spec.rb index a1e851e..aa6a6d3 100644 --- a/spec/edje_spec.rb +++ b/spec/edje_spec.rb @@ -23,22 +23,24 @@ require './spec/helper' # describe "Efl::Edje #{Efl::Edje.version.full}" do # - before(:all) { + before(:all) do Edje = Efl::Edje - Edje.init.should == 1 - } - after(:all) { - Edje.shutdown == 0 - } + @init = Edje.init + end + after(:all) do + Edje.shutdown + end # it "should init" do - Edje.init.should == 2 - Edje.init.should == 3 + Edje.init.should == @init+1 + Edje.init.should == @init+2 + Edje.init.should == @init+3 end # it "should shutdown" do - Edje.shutdown.should == 2 - Edje.shutdown.should == 1 + Edje.shutdown.should == @init+2 + Edje.shutdown.should == @init+1 + Edje.shutdown.should == @init end # it "frametime get/set " do @@ -105,7 +107,7 @@ describe "Efl::Edje #{Efl::Edje.version.full}" do after(:all) do @e.free @pixels.free - Efl::Evas.shutdown.should==0 + Efl::Evas.shutdown end # it "scale get/set " do |