wordpress-import/spec/support/helpers.rb
Marc Remolt 0beaa90a3d Trying to make the gem 1.8.7 compatible
* replaced File.realpath in testsuite with File.expand_path
* removed the old YAML hack
2011-08-12 19:15:46 +02:00

12 lines
298 B
Ruby

module Refinery::WordPress::SpecHelpers
def test_dump
file_name = File.expand_path(File.join(File.dirname(__FILE__), '../fixtures/wordpress_dump.xml'))
Refinery::WordPress::Dump.new(file_name)
end
end
RSpec.configure do |config|
config.include Refinery::WordPress::SpecHelpers
end