From 0beaa90a3d9ef601cb7cd6a635523002b980b4bc Mon Sep 17 00:00:00 2001 From: Marc Remolt Date: Fri, 12 Aug 2011 19:15:46 +0200 Subject: [PATCH] Trying to make the gem 1.8.7 compatible * replaced File.realpath in testsuite with File.expand_path * removed the old YAML hack --- spec/dummy/config/boot.rb | 3 --- spec/support/helpers.rb | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/spec/dummy/config/boot.rb b/spec/dummy/config/boot.rb index bd45853..140dfe2 100644 --- a/spec/dummy/config/boot.rb +++ b/spec/dummy/config/boot.rb @@ -1,6 +1,3 @@ -require 'yaml' -YAML::ENGINE.yamler= 'syck' - require 'rubygems' gemfile = File.expand_path('../../../../Gemfile', __FILE__) diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index e69face..2e7af3b 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -1,6 +1,6 @@ module Refinery::WordPress::SpecHelpers def test_dump - file_name = File.realpath(File.join(File.dirname(__FILE__), '../fixtures/wordpress_dump.xml')) + file_name = File.expand_path(File.join(File.dirname(__FILE__), '../fixtures/wordpress_dump.xml')) Refinery::WordPress::Dump.new(file_name) end end