Sha256: 64fdbe38ddea07a5bc9309a7d417e7b1872ee381de2fc8dd9f4cd38c937128eb

Contents?: true

Size: 732 Bytes

Versions: 50

Compression:

Stored size: 732 Bytes

Contents

require 'spec_helper'

describe Dugway::Drops::ShippingOptionDrop do
  let(:product) { Dugway::Drops::ProductDrop.new(Dugway.store.products.first) }
  let(:shipping) { product.shipping.first }

  describe "#amount_alone" do
    it "should return the shipping's amount_alone" do
      shipping.amount_alone.should == 10.0
    end
  end

  describe "#amount_with_others" do
    it "should return the shipping's amount_with_others" do
      shipping.amount_with_others.should == 5.0
    end
  end

  describe "#country" do
    it "should return the shipping's country" do
      country = shipping.country
      country.should be_an_instance_of(Dugway::Drops::CountryDrop)
      country.name.should == 'United States'
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

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