Sha256: 702ef8277c6616dd22a3134bd71ba4a43880e1133d3af32b00a84fa4484b3bb9

Contents?: true

Size: 562 Bytes

Versions: 8

Compression:

Stored size: 562 Bytes

Contents

require 'spec_helper'

describe Dugway::Drops::ImageDrop do
  let(:image) { Dugway::Drops::ImageDrop.new(Dugway.store.products.first['images'].first) }

  describe "#url" do
    it "should return the image's url" do
      image.url.should == 'http://cache1.bigcartel.com/product_images/92599166/-/mens_tee_1.jpg'
    end
  end

  describe "#width" do
    it "should return the image's width" do
      image.width.should == 475
    end
  end

  describe "#height" do
    it "should return the image's height" do
      image.height.should == 500
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dugway-0.10.3 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.10.2 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.10.1 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.10.0 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.9.0 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.8.4 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.8.3 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.8.2 spec/units/dugway/liquid/drops/image_drop_spec.rb