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