summaryrefslogtreecommitdiffstats
path: root/spec/ecore_spec.rb
diff options
context:
space:
mode:
authorLionel Orry <lionel.orry@gmail.com>2011-04-21 17:39:06 +0200
committerjeremyz <jeremy@asynk.ch>2011-04-26 08:25:52 +0200
commita04650c1d5d9faefa653bc4060974fd086985140 (patch)
tree0871d3eb07541995e6e13de443ab3d5cd3a758f5 /spec/ecore_spec.rb
parent52957665ac4975bff06a82e4169e99a60524a6a4 (diff)
downloadffi-efl-a04650c1d5d9faefa653bc4060974fd086985140.zip
ffi-efl-a04650c1d5d9faefa653bc4060974fd086985140.tar.gz
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.
Diffstat (limited to 'spec/ecore_spec.rb')
-rw-r--r--spec/ecore_spec.rb3
1 files changed, 1 insertions, 2 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