#! /usr/bin/env ruby # -*- coding: UTF-8 -*- # 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 == @i+1 Efl::Eina.init.should == @i+2 Efl::Eina.init.should == @i+3 end # it "should shutdown" do Efl::Eina.shutdown.should == @i+2 Efl::Eina.shutdown.should == @i+1 Efl::Eina.shutdown.should == @i+0 end # end