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

Version Path
sufia-5.0.0 spec/jobs/active_fedora_pid_based_job_spec.rb
sufia-5.0.0.rc1 spec/jobs/active_fedora_pid_based_job_spec.rb
sufia-4.3.1 spec/jobs/active_fedora_pid_based_job_spec.rb
sufia-4.2.0 spec/jobs/active_fedora_pid_based_job_spec.rb
sufia-4.1.0 spec/jobs/active_fedora_pid_based_job_spec.rb
sufia-4.0.1 spec/jobs/active_fedora_pid_based_job_spec.rb
sufia-4.0.0 spec/jobs/active_fedora_pid_based_job_spec.rb
sufia-4.0.0.rc2 spec/jobs/active_fedora_pid_based_job_spec.rb