summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-05 23:02:00 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-05 23:02:00 +0200
commit8425b72b78b08573ed8341d958e17a47c4f8f415 (patch)
tree2139709630695fcb0576989cfee90e8378254b3e
parent34385f0e58d923c49da1951899cefa7649c42d14 (diff)
downloadffi-efl-8425b72b78b08573ed8341d958e17a47c4f8f415.zip
ffi-efl-8425b72b78b08573ed8341d958e17a47c4f8f415.tar.gz
prevent Native constant redefinition
-rw-r--r--spec/eet_spec.rb2
-rw-r--r--spec/evas_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/eet_spec.rb b/spec/eet_spec.rb
index 82c2dbf..c499295 100644
--- a/spec/eet_spec.rb
+++ b/spec/eet_spec.rb
@@ -7,7 +7,7 @@ describe Efl::Eet do
#
before(:all) {
Eet = Efl::Eet
- Native = Efl::Native
+ Native = Efl::Native unless Kernel.const_defined? 'Native'
REetFile = Efl::Eet::REetFile
}
#
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb
index 55af12b..ac41b5a 100644
--- a/spec/evas_spec.rb
+++ b/spec/evas_spec.rb
@@ -26,7 +26,7 @@ describe Efl::Evas do
#
before(:all) {
Evas = Efl::Evas
- Native = Efl::Native
+ Native = Efl::Native unless Kernel.const_defined? 'Native'
}
#
it "should init" do