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