summaryrefslogtreecommitdiffstats
path: root/spec/elm_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/elm_spec.rb
parent8ceeda9e767e3be64bcc2b41cc89e1cee3411e82 (diff)
downloadffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.zip
ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.tar.gz
cleanup init/shutdown specs
Diffstat (limited to 'spec/elm_spec.rb')
-rw-r--r--spec/elm_spec.rb23
1 files changed, 17 insertions, 6 deletions
diff --git a/spec/elm_spec.rb b/spec/elm_spec.rb
index 3073e9b..ff23459 100644
--- a/spec/elm_spec.rb
+++ b/spec/elm_spec.rb
@@ -6,13 +6,24 @@ require './spec/helper'
#
describe "Efl::Elm #{Efl::Elm.version.full}" do
#
- before(:all) {
+ before(:all) do
Elm = Efl::Elm
- Elm.init.should == 1
- }
- after(:all) {
- Elm.shutdown.should == 0
- }
+ @init = Elm.init
+ end
+ after(:all) do
+ Elm.shutdown
+ end
+ it "should init" do
+ Elm.init.should == @init+1
+ Elm.init.should == @init+2
+ Elm.init.should == @init+3
+ end
+ #
+ it "should shutdown" do
+ Elm.shutdown.should == @init+2
+ Elm.shutdown.should == @init+1
+ Elm.shutdown.should == @init
+ end
#
describe Efl::Elm::ElmWin do
before(:each) {