Sha256: 46c3db0c25e91c391d13b1679e3387c2e423f890e627ddccc62f259b58357f61

Contents?: true

Size: 517 Bytes

Versions: 20

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'
require 'rake'
require 'fileutils'

describe 'geoblacklight.rake' do
  describe 'geoblacklight:downloads:mkdir' do
    before do
      Rails.application.load_tasks
      FileUtils.rm_rf Rails.root.join('tmp', 'cache', 'downloads')
    end

    it 'creates the tmp/cache/downloads directory' do
      Rake::Task['geoblacklight:downloads:mkdir'].invoke
      expect(File.directory?(Rails.root.join('tmp', 'cache', 'downloads')))
        .to be true
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.8.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-4.0.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-4.0.0.pre.rc3 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.7.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-4.0.0.pre.rc2 spec/tasks/geoblacklight_spec.rb
geoblacklight-4.0.0.pre.rc1 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.6.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.5.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-4.0.0.pre.alpha.3 spec/tasks/geoblacklight_spec.rb
geoblacklight-4.0.0.pre.alpha.2 spec/tasks/geoblacklight_spec.rb
geoblacklight-4.0.0.pre.alpha.1 spec/tasks/geoblacklight_spec.rb
geoblacklight-4.0.0.pre.alpha spec/tasks/geoblacklight_spec.rb
geoblacklight-3.4.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.3.1 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.3.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.2.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.1.0 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.0.1 spec/tasks/geoblacklight_spec.rb
geoblacklight-3.0.0 spec/tasks/geoblacklight_spec.rb