summaryrefslogtreecommitdiffstats
path: root/spec/eina_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/eina_spec.rb
parent8ceeda9e767e3be64bcc2b41cc89e1cee3411e82 (diff)
downloadffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.zip
ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.tar.gz
cleanup init/shutdown specs
Diffstat (limited to 'spec/eina_spec.rb')
-rw-r--r--spec/eina_spec.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/eina_spec.rb b/spec/eina_spec.rb
index 9e1d8b6..65fe713 100644
--- a/spec/eina_spec.rb
+++ b/spec/eina_spec.rb
@@ -4,17 +4,17 @@
require 'efl/eina'
#
describe "Efl::Eina #{Efl::Eina.version.full}" do
- before(:all) {
- @i = Efl::Eina.init
- }
- after(:all) {
+ before(:all) do
+ @init = Efl::Eina.init
+ end
+ after(:all) do
Efl::Eina.shutdown
- }
+ end
#
it "should init" do
- Efl::Eina.init.should == @i+1
- Efl::Eina.init.should == @i+2
- Efl::Eina.init.should == @i+3
+ Efl::Eina.init.should == @init+1
+ Efl::Eina.init.should == @init+2
+ Efl::Eina.init.should == @init+3
end
#
it "should be main thread" do
@@ -29,9 +29,9 @@ describe "Efl::Eina #{Efl::Eina.version.full}" do
end
#
it "should shutdown" do
- Efl::Eina.shutdown.should == @i+2
- Efl::Eina.shutdown.should == @i+1
- Efl::Eina.shutdown.should == @i+0
+ Efl::Eina.shutdown.should == @init+2
+ Efl::Eina.shutdown.should == @init+1
+ Efl::Eina.shutdown.should == @init
end
#
end