Sha256: 5dbf1e0483322cf587f3928056ee336c742eb7675411c1b49de555233f5fe6c3

Contents?: true

Size: 496 Bytes

Versions: 24

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'

describe Dragonfly::ImageMagick::Analysers::ImageProperties do

  let(:app) { test_imagemagick_app }
  let(:analyser) { Dragonfly::ImageMagick::Analysers::ImageProperties.new }
  let(:content) { Dragonfly::Content.new(app, SAMPLES_DIR.join('beach.png')) } # 280x355

  describe "call" do
    it "returns a hash of properties" do
      analyser.call(content).should == {
        'width' => 280,
        'height' => 355,
        'format' => 'png'
      }
    end
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
dragonfly-1.0.3 spec/dragonfly/image_magick/analysers/image_properties_spec.rb
dragonfly-1.0.2 spec/dragonfly/image_magick/analysers/image_properties_spec.rb
dragonfly-1.0.1 spec/dragonfly/image_magick/analysers/image_properties_spec.rb
dragonfly-1.0 spec/dragonfly/image_magick/analysers/image_properties_spec.rb