Sha256: e35a85c53d6814f5c83dc03ed9fb4f8d749e69d79fc42cf668df12fbf1824b3a

Contents?: true

Size: 1.29 KB

Versions: 4

Compression:

Stored size: 1.29 KB

Contents

unless ENV['IGNORE_RMAGICK']

  require File.dirname(__FILE__) + '/../../spec_helper'

  describe Dragonfly::Config::RMagick do

    before(:each) do
      @app = test_app
    end

    it "should configure all to use the filesystem by default" do
      @app.configure_with(Dragonfly::Config::RMagick)
      @app.analyser.get_registered(Dragonfly::Analysis::RMagickAnalyser).use_filesystem.should be_true
      @app.processor.get_registered(Dragonfly::Processing::RMagickProcessor).use_filesystem.should be_true
      @app.encoder.get_registered(Dragonfly::Encoding::RMagickEncoder).use_filesystem.should be_true
      @app.generator.get_registered(Dragonfly::Generation::RMagickGenerator).use_filesystem.should be_true
    end

    it "should configure all not to use the filesystem if requested" do
      @app.configure_with(Dragonfly::Config::RMagick, :use_filesystem => false)
      @app.analyser.get_registered(Dragonfly::Analysis::RMagickAnalyser).use_filesystem.should be_false
      @app.processor.get_registered(Dragonfly::Processing::RMagickProcessor).use_filesystem.should be_false
      @app.encoder.get_registered(Dragonfly::Encoding::RMagickEncoder).use_filesystem.should be_false
      @app.generator.get_registered(Dragonfly::Generation::RMagickGenerator).use_filesystem.should be_false
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dragonfly-0.8.6 spec/dragonfly/config/r_magick_spec.rb
dragonfly-0.8.5 spec/dragonfly/config/r_magick_spec.rb
dragonfly-0.8.4 spec/dragonfly/config/r_magick_spec.rb
dragonfly-0.8.2 spec/dragonfly/config/r_magick_spec.rb