summaryrefslogtreecommitdiffstats
path: root/spec/ecore_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_spec.rb
parent8ceeda9e767e3be64bcc2b41cc89e1cee3411e82 (diff)
downloadffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.zip
ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.tar.gz
cleanup init/shutdown specs
Diffstat (limited to 'spec/ecore_spec.rb')
-rw-r--r--spec/ecore_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/ecore_spec.rb b/spec/ecore_spec.rb
index 0632387..66f9d4c 100644
--- a/spec/ecore_spec.rb
+++ b/spec/ecore_spec.rb
@@ -22,22 +22,22 @@ describe "Efl::Ecore #{Efl::Ecore.version.full}" do
OK = FFI::MemoryPointer.from_string "ok"
KO = FFI::MemoryPointer.from_string "ko"
NONE = FFI::MemoryPointer.from_string "none"
+ @init = Ecore.init
+ end
+ after(:all) do
+ Ecore.shutdown
end
- before(:each) {
- Ecore.init==1
- }
- after(:each) {
- Ecore.shutdown==0
- }
#
it "should init" do
- Ecore.init.should == 2
- Ecore.init.should == 3
+ Ecore.init.should == @init+1
+ Ecore.init.should == @init+2
+ Ecore.init.should == @init+3
end
#
it "should shutdown" do
- Ecore.shutdown.should == 2
- Ecore.shutdown.should == 1
+ Ecore.shutdown.should == @init+2
+ Ecore.shutdown.should == @init+1
+ Ecore.shutdown.should == @init
end
#
it "should run a single iteration of the mainloop" do