summaryrefslogtreecommitdiffstats
path: root/spec/ecore_input_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/ecore_input_spec.rb
parent8ceeda9e767e3be64bcc2b41cc89e1cee3411e82 (diff)
downloadffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.zip
ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.tar.gz
cleanup init/shutdown specs
Diffstat (limited to 'spec/ecore_input_spec.rb')
-rw-r--r--spec/ecore_input_spec.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/spec/ecore_input_spec.rb b/spec/ecore_input_spec.rb
index 51f23a8..29698e9 100644
--- a/spec/ecore_input_spec.rb
+++ b/spec/ecore_input_spec.rb
@@ -7,18 +7,22 @@ describe Efl::EcoreInput do
#
before(:all) do
EcoreInput = Efl::EcoreInput
+ @init = EcoreInput.init
+ end
+ after(:all) do
+ EcoreInput.shutdown
end
#
it "should init" do
- EcoreInput.init.should == 1
- EcoreInput.init.should == 2
- EcoreInput.init.should == 3
+ EcoreInput.init.should == @init+1
+ EcoreInput.init.should == @init+2
+ EcoreInput.init.should == @init+3
end
#
it "should shutdown" do
- EcoreInput.shutdown.should == 2
- EcoreInput.shutdown.should == 1
- EcoreInput.shutdown.should == 0
+ EcoreInput.shutdown.should == @init+2
+ EcoreInput.shutdown.should == @init+1
+ EcoreInput.shutdown.should == @init
end
#
end