Sha256: b0ffac6e71ad68a75e5fd8057664dc9939b1ff418df9f309aadd6257a9422fc6

Contents?: true

Size: 560 Bytes

Versions: 17

Compression:

Stored size: 560 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

17 entries across 17 versions & 1 rubygems

Version Path
dugway-0.8.1 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.8.0 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.7.1 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.7.0 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.6.7 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.6.6 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.6.5 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.6.4 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.6.3 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.6.2 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.6.1 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.6.0 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.5.9 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.5.8 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.5.7 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.5.6 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.5.4 spec/units/dugway/liquid/drops/image_drop_spec.rb