diff options
Diffstat (limited to 'spec/eina_spec.rb')
-rw-r--r-- | spec/eina_spec.rb | 18 |
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 |