summaryrefslogtreecommitdiffstats
path: root/spec/ecore_input_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ecore_input_spec.rb')
-rw-r--r--spec/ecore_input_spec.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/spec/ecore_input_spec.rb b/spec/ecore_input_spec.rb
index 51f23a8..29698e9 100644
--- a/spec/ecore_input_spec.rb
+++ b/spec/ecore_input_spec.rb
@@ -7,18 +7,22 @@ describe Efl::EcoreInput do
#
before(:all) do
EcoreInput = Efl::EcoreInput
+ @init = EcoreInput.init
+ end
+ after(:all) do
+ EcoreInput.shutdown
end
#
it "should init" do
- EcoreInput.init.should == 1
- EcoreInput.init.should == 2
- EcoreInput.init.should == 3
+ EcoreInput.init.should == @init+1
+ EcoreInput.init.should == @init+2
+ EcoreInput.init.should == @init+3
end
#
it "should shutdown" do
- EcoreInput.shutdown.should == 2
- EcoreInput.shutdown.should == 1
- EcoreInput.shutdown.should == 0
+ EcoreInput.shutdown.should == @init+2
+ EcoreInput.shutdown.should == @init+1
+ EcoreInput.shutdown.should == @init
end
#
end