Sha256: 8c446d8fc370b90f5e6c46aa5c5f1b8ef5734a5da45cf6139fb1404eb94256ff

Contents?: true

Size: 560 Bytes

Versions: 26

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://images.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

26 entries across 26 versions & 1 rubygems

Version Path
dugway-1.1.0 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.14 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.13 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.12 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.10 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.9 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.8 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.7 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.6 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.5 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.4 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.3 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.2 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.1 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-1.0.0 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.12.3 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.12.2 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.12.1 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.12.0 spec/units/dugway/liquid/drops/image_drop_spec.rb
dugway-0.11.4 spec/units/dugway/liquid/drops/image_drop_spec.rb