summaryrefslogtreecommitdiffstats
path: root/spec/eina_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-09 14:01:57 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-09 14:01:57 +0200
commit601f74881e06a85e57d9799c57512f8b587b59fd (patch)
tree94176da1b12a625726f9cea4d02f8236a38c9046 /spec/eina_spec.rb
parente6f6ad8072532f879aaaffddebdbd0be4b749285 (diff)
downloadffi-efl-601f74881e06a85e57d9799c57512f8b587b59fd.zip
ffi-efl-601f74881e06a85e57d9799c57512f8b587b59fd.tar.gz
cleanup specs
Diffstat (limited to 'spec/eina_spec.rb')
-rw-r--r--spec/eina_spec.rb18
1 files changed, 12 insertions, 6 deletions
diff --git a/spec/eina_spec.rb b/spec/eina_spec.rb
index b16a0cb..39f2944 100644
--- a/spec/eina_spec.rb
+++ b/spec/eina_spec.rb
@@ -4,17 +4,23 @@
require 'efl/eina'
#
describe Efl::Eina do
+ before(:all) {
+ @i = Efl::Eina.init
+ }
+ after(:all) {
+ Efl::Eina.shutdown
+ }
#
it "should init" do
- Efl::Eina.init.should == 1
- Efl::Eina.init.should == 2
- Efl::Eina.init.should == 3
+ Efl::Eina.init.should == @i+1
+ Efl::Eina.init.should == @i+2
+ Efl::Eina.init.should == @i+3
end
#
it "should shutdown" do
- Efl::Eina.shutdown.should == 2
- Efl::Eina.shutdown.should == 1
- Efl::Eina.shutdown.should == 0
+ Efl::Eina.shutdown.should == @i+2
+ Efl::Eina.shutdown.should == @i+1
+ Efl::Eina.shutdown.should == @i+0
end
#
end