Sha256: bd421c4201ac6d1f44ce61ce3f2e6d08d0379cef8c41f35a78bdd21f0c5ad540

Contents?: true

Size: 507 Bytes

Versions: 66

Compression:

Stored size: 507 Bytes

Contents

require 'spec_helper'

describe CurationConcerns::RepositoryAuditService do
  let(:user) { FactoryGirl.create(:user) }
  let!(:file) do
    fs = FileSet.create! do |f|
      f.apply_depositor_metadata(user)
    end
    Hydra::Works::AddFileToFileSet.call(fs, File.open(fixture_path + '/world.png'), :original_file)
    fs
  end

  describe '#audit_everything' do
    it 'audits everything' do
      expect_any_instance_of(FileSet).to receive(:audit)
      described_class.audit_everything
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.7 spec/services/repository_audit_service_spec.rb
curation_concerns-2.0.0 spec/services/repository_audit_service_spec.rb
curation_concerns-2.0.0.rc2 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.6 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.5 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.4 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.3 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.2 spec/services/repository_audit_service_spec.rb
curation_concerns-2.0.0.rc1 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.1 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.0 spec/services/repository_audit_service_spec.rb
curation_concerns-1.7.0.beta1 spec/services/repository_audit_service_spec.rb
curation_concerns-1.6.3 spec/services/repository_audit_service_spec.rb
curation_concerns-1.6.2 spec/services/repository_audit_service_spec.rb
curation_concerns-1.6.1 spec/services/repository_audit_service_spec.rb
curation_concerns-1.6.0 spec/services/repository_audit_service_spec.rb
curation_concerns-1.5.0 spec/services/repository_audit_service_spec.rb
curation_concerns-1.4.0 spec/services/repository_audit_service_spec.rb
curation_concerns-1.3.3 spec/services/repository_audit_service_spec.rb