summaryrefslogtreecommitdiffstats
path: root/spec/ecore_spec.rb
diff options
context:
space:
mode:
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