Sha256: d388d839f43c856233cc2d955eff026df372c8ace256d65c03ae57dde877c31f

Contents?: true

Size: 673 Bytes

Versions: 16

Compression:

Stored size: 673 Bytes

Contents

require 'spec_helper'
require 'rake'

describe 'Rake tasks' do
  describe 'curation_concerns:migrate' do
    let(:namespaced_id) { 'curation_concerns:123' }
    let(:corrected_id)  { '123' }
    before do
      load File.expand_path('../../../lib/tasks/migrate.rake', __FILE__)
      Rake::Task.define_task(:environment)
    end

    describe 'deleting the namespace from ChecksumAuditLog#file_set_id' do
      before do
        ChecksumAuditLog.create(file_set_id: namespaced_id)
        Rake::Task['curation_concerns:migrate:audit_logs'].invoke
      end
      subject { ChecksumAuditLog.first.file_set_id }
      it { is_expected.to eql corrected_id }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
curation_concerns-0.14.0 spec/tasks/rake_spec.rb
curation_concerns-0.14.0.pre4 spec/tasks/rake_spec.rb
curation_concerns-0.14.0.pre3 spec/tasks/rake_spec.rb
curation_concerns-0.14.0.pre2 spec/tasks/rake_spec.rb
curation_concerns-0.14.0.pre1 spec/tasks/rake_spec.rb
curation_concerns-0.13.1 spec/tasks/rake_spec.rb
curation_concerns-0.13.0 spec/tasks/rake_spec.rb
curation_concerns-0.12.0 spec/tasks/rake_spec.rb
curation_concerns-0.12.0.pre9 spec/tasks/rake_spec.rb
curation_concerns-0.12.0.pre8 spec/tasks/rake_spec.rb
curation_concerns-0.12.0.pre7 spec/tasks/rake_spec.rb
curation_concerns-0.12.0.pre6 spec/tasks/rake_spec.rb
curation_concerns-0.12.0.pre5 spec/tasks/rake_spec.rb
curation_concerns-0.12.0.pre4 spec/tasks/rake_spec.rb
curation_concerns-0.12.0.pre3 spec/tasks/rake_spec.rb
curation_concerns-0.12.0.pre2 spec/tasks/rake_spec.rb