From 8425b72b78b08573ed8341d958e17a47c4f8f415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 5 May 2011 23:02:00 +0200 Subject: prevent Native constant redefinition --- spec/eet_spec.rb | 2 +- spec/evas_spec.rb | 2 +- 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 -- cgit v1.1-2-g2b99