From aa7ddc693a3bf6fed5c346f83b3aa7791ba83a8a Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Thu, 28 Apr 2011 17:00:26 +0200 Subject: fix efl/ffi/ecore_input generation, add specs --- spec/ecore/ecore_input_spec.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 spec/ecore/ecore_input_spec.rb (limited to 'spec') diff --git a/spec/ecore/ecore_input_spec.rb b/spec/ecore/ecore_input_spec.rb new file mode 100644 index 0000000..041f422 --- /dev/null +++ b/spec/ecore/ecore_input_spec.rb @@ -0,0 +1,24 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/ecore/ecore_input' +# +describe Efl::EcoreInput do + # + before(:all) do + EcoreInput = Efl::EcoreInput + end + # + it "should init" do + EcoreInput.init.should eql 1 + EcoreInput.init.should eql 2 + EcoreInput.init.should eql 3 + end + # + it "should shutdown" do + EcoreInput.shutdown.should eql 2 + EcoreInput.shutdown.should eql 1 + EcoreInput.shutdown.should eql 0 + end + # +end -- cgit v1.2.3