summaryrefslogtreecommitdiffstats
path: root/spec/evas_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-08-18 10:22:55 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-08-18 10:22:55 +0200
commit8e9d5ca59eaef7e977857ebe39c086c966c556dd (patch)
tree48dac00564ff18f5ac66069f3b4fc87dfb6b3a65 /spec/evas_spec.rb
parent8ceeda9e767e3be64bcc2b41cc89e1cee3411e82 (diff)
downloadffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.zip
ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.tar.gz
cleanup init/shutdown specs
Diffstat (limited to 'spec/evas_spec.rb')
-rw-r--r--spec/evas_spec.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb
index be19c59..ac59294 100644
--- a/spec/evas_spec.rb
+++ b/spec/evas_spec.rb
@@ -8,23 +8,25 @@ require './spec/helper'
#
describe "Efl::Evas #{Efl::Evas.version.full}" do
#
- before(:all) {
+ before(:all) do
Evas = Efl::Evas
Native = Efl::Native unless Kernel.const_defined? 'Native'
- Evas.init.should == 1
- }
- after(:all) {
+ @init = Evas.init
+ end
+ after(:all) do
Evas.shutdown.should == 0
- }
+ end
#
it "should init" do
- Evas.init.should == 2
- Evas.init.should == 3
+ Evas.init.should == @init+1
+ Evas.init.should == @init+2
+ Evas.init.should == @init+3
end
#
it "should shutdown" do
- Evas.shutdown.should == 2
- Evas.shutdown.should == 1
+ Evas.shutdown.should == @init+2
+ Evas.shutdown.should == @init+1
+ Evas.shutdown.should == @init
end
#
it "evas alloc error enum is ok" do