summaryrefslogtreecommitdiffstats
path: root/spec/eina_spec.rb
blob: d3db08183b354ab60e9aafac7a3c1ef6e615ef9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/eina'
#
describe "Efl::Eina #{Efl::Eina.version.full}" 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