Sha256: fa56da7104b5fac7a39b23eb063a6abed0c2a0d3dc579b56043ad4405509de31
Contents?: true
Size: 1.22 KB
Versions: 7
Compression:
Stored size: 1.22 KB
Contents
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
Version data entries
7 entries across 7 versions & 2 rubygems