summaryrefslogtreecommitdiffstats
path: root/spec/ecore_spec.rb
blob: e1260fcc9ed72ff216c4a6af4a77388e7ccdb99c (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
27
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/ecore'
#
describe EFL::ECORE do
    #
    include EFL
    #
    it "should init" do
        ECORE.init.should eql 1
        ECORE.init.should eql 2
        ECORE.init.should eql 3
    end
    #
    it "should shutdown" do
        ECORE.shutdown.should eql 2
        ECORE.shutdown.should eql 1
        ECORE.shutdown.should eql 0
    end
    #
    it "should run a single iteration of the mainloop" do
        ECORE.init.should eql 1
        ECORE.main_loop_iterate
        ECORE.shutdown.should eql 0
    end
end