From a04650c1d5d9faefa653bc4060974fd086985140 Mon Sep 17 00:00:00 2001 From: Lionel Orry Date: Thu, 21 Apr 2011 23:39:06 +0800 Subject: Make specs work with ruby18. The included Efl module in the 'describe' scope was not visible in the tested context. Aliasing the module Efl::Xxx to Xxx seems to workaround this. --- spec/ecore_spec.rb | 3 +-- spec/edje_spec.rb | 2 +- spec/eet_spec.rb | 2 +- spec/evas_spec.rb | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/ecore_spec.rb b/spec/ecore_spec.rb index 40586ec..3fcf6fb 100644 --- a/spec/ecore_spec.rb +++ b/spec/ecore_spec.rb @@ -5,9 +5,8 @@ require 'efl/ecore' # describe Efl::Ecore do # - include Efl - # before(:all) do + Ecore = Efl::Ecore USER_SIGNAL_CB = Proc.new do |data, type, event| data.read_string.should eql "ok" type.should eql Ecore::EVENT_SIGNAL_USER diff --git a/spec/edje_spec.rb b/spec/edje_spec.rb index 3b5a98c..0dfc38b 100644 --- a/spec/edje_spec.rb +++ b/spec/edje_spec.rb @@ -5,7 +5,7 @@ require 'efl/edje' # describe Efl::Edje do # - include Efl + before(:all) { Edje = Efl::Edje } # it "should init" do Edje.init.should eql 1 diff --git a/spec/eet_spec.rb b/spec/eet_spec.rb index 6ce5813..188f976 100644 --- a/spec/eet_spec.rb +++ b/spec/eet_spec.rb @@ -5,7 +5,7 @@ require 'efl/eet' # describe Efl::Eet do # - include Efl + before(:all) { Eet = Efl::Eet } # FP = '/tmp/_eet.cfg' # diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb index 78ac53a..1ec0849 100644 --- a/spec/evas_spec.rb +++ b/spec/evas_spec.rb @@ -5,7 +5,7 @@ require 'efl/evas' # describe Efl::Evas do # - include Efl + before(:all) { Evas = Efl::Evas } # it "should init" do Evas.init.should eql 1 -- cgit v1.1-2-g2b99