Sha256: 5acd5e5af13d031ff912533e0d6c0c5c83f3f7bf5fb156f1ebbb19961d2cfabd

Contents?: true

Size: 698 Bytes

Versions: 12

Compression:

Stored size: 698 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('../../../curation_concerns-models/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

12 entries across 12 versions & 1 rubygems

Version Path
curation_concerns-0.12.0.pre1 spec/tasks/rake_spec.rb
curation_concerns-0.11.0 spec/tasks/rake_spec.rb
curation_concerns-0.11.0.rc1 spec/tasks/rake_spec.rb
curation_concerns-0.10.0 spec/tasks/rake_spec.rb
curation_concerns-0.9.0 spec/tasks/rake_spec.rb
curation_concerns-0.8.0 spec/tasks/rake_spec.rb
curation_concerns-0.7.0 spec/tasks/rake_spec.rb
curation_concerns-0.6.0 spec/tasks/rake_spec.rb
curation_concerns-0.5.0 spec/tasks/rake_spec.rb
curation_concerns-0.4.0 spec/tasks/rake_spec.rb
curation_concerns-0.3.0 spec/tasks/rake_spec.rb
curation_concerns-0.2.0 spec/tasks/rake_spec.rb