Sha256: f142cf838a4618b67f885c8beaced7d08b9f9d5298adaeff20590dbef8aaaa25
Contents?: true
Size: 476 Bytes
Versions: 8
Compression:
Stored size: 476 Bytes
Contents
require 'spec_helper' describe ActiveFedoraPidBasedJob do let (:user) {FactoryGirl.find_or_create(:jill)} let (:file) {GenericFile.new.tap do |gf| gf.apply_depositor_metadata(user) gf.save! end} after do file.destroy user.destroy end it "finds object" do job = ActiveFedoraPidBasedJob.new(file.id) expect(job.generic_file).to_not be_nil expect(job.generic_file).to be_reload_on_save end end
Version data entries
8 entries across 8 versions & 1 rubygems