Sha256: d2cadad0a56d2be21a223b80717257284fdcc62e747a830afbf3a43917210fbf

Contents?: true

Size: 631 Bytes

Versions: 53

Compression:

Stored size: 631 Bytes

Contents

require 'spec_helper'

describe Locomotive::Steam::Initializers::Dragonfly do

  let(:initializer) { Locomotive::Steam::Initializers::Dragonfly.new }

  subject { ::Dragonfly.app(:steam).plugins[:imagemagick] }

  describe 'with ImagickMagick' do

    before { initializer.run }
    it { is_expected.not_to eq nil }

  end

  describe 'missing ImagickMagick' do

    before do
      ::Dragonfly::App.destroy_apps
      expect(File).to receive(:exists?).and_return(false)
      initializer.run
    end
    it { is_expected.to eq nil }

    after(:all) do
      Locomotive::Steam::Initializers::Dragonfly.new.run
    end

  end

end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
locomotivecms_steam-1.0.0.rc8 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.rc6 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.rc4 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.rc3 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.rc2 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.rc1 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.pre.beta.3 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.pre.beta.2 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.pre.beta.1 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.3 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.2 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.1 spec/unit/initializers/dragonfly_spec.rb
locomotivecms_steam-1.0.0.pre.alpha spec/unit/initializers/dragonfly_spec.rb