Sha256: 73f44b262faee6134cff085f7972364fbe09e848d5e39a62e1aac821bf72ca1c

Contents?: true

Size: 809 Bytes

Versions: 4

Compression:

Stored size: 809 Bytes

Contents

unless ENV['IGNORE_RMAGICK']

  require 'spec_helper'
  require 'dragonfly/analysis/shared_analyser_spec'

  describe Dragonfly::Analysis::RMagickAnalyser do
  
    before(:each) do
      image_path = File.dirname(__FILE__) + '/../../../samples/beach.png'
      @image = Dragonfly::TempObject.new(File.new(image_path))
      @analyser = Dragonfly::Analysis::RMagickAnalyser.new
      @analyser.log = Logger.new(LOG_FILE)
    end
  
    describe "when using the filesystem" do
      before(:each) do
        @analyser.use_filesystem = true
      end
      it_should_behave_like "image analyser methods"
    end
  
    describe "when not using the filesystem" do
      before(:each) do
        @analyser.use_filesystem = false
      end
      it_should_behave_like "image analyser methods"
    end
  
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dragonfly-0.8.6 spec/dragonfly/analysis/r_magick_analyser_spec.rb
dragonfly-0.8.5 spec/dragonfly/analysis/r_magick_analyser_spec.rb
dragonfly-0.8.4 spec/dragonfly/analysis/r_magick_analyser_spec.rb
dragonfly-0.8.2 spec/dragonfly/analysis/r_magick_analyser_spec.rb