Sha256: 93c070d71b59bbd65e911d49517c30492c89234884728f8dd6bbee1bff21f7a8
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
TEST_PID='druid:dd999dd9999' TEST_PID_FILENAME=TEST_PID.gsub(':','_') TEST_APO_OBJECT='druid:nt592gh9590' # this is a real APO object in dor-dev that must exist for the tests to pass PATH = File.expand_path(File.dirname(__FILE__)) TEST_OUTPUT_DIR=File.join(PATH,'test_data','output') ENV['ROBOT_ENVIRONMENT']='development' require 'rspec' require "#{PATH}/../config/boot" require "#{PATH}/../config/connect_to_dor" RSpec.configure do |config| end def remove_files(dir) Dir.foreach(dir) {|f| fn = File.join(dir, f); File.delete(fn) if !File.directory?(fn) && File.basename(fn) != '.empty'} end def load_test_object pid = ActiveFedora::FixtureLoader.import_to_fedora("#{PATH}/test_data/#{TEST_PID_FILENAME}.xml") end def delete_test_object Dor::Config.fedora.client["objects/#{TEST_PID}"].delete end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assembly-utils-1.4.0 | spec/spec_helper.rb |