Sha256: 7bf0fe2a314ae162e742a447b4d8f2c69a81c72b3c077b82d01184f1e4603411

Contents?: true

Size: 645 Bytes

Versions: 21

Compression:

Stored size: 645 Bytes

Contents

require File.expand_path('../../../test_helper', __FILE__)

module Etsy
  class ShippingTemplateTest < Test::Unit::TestCase
    context "An instance of the ShippingTemplate class" do
      setup do
        data = read_fixture('shipping_template/getShippingTemplate.json')
        @shipping_template = ShippingTemplate.new(data.first)
      end

      should "have an id" do
        @shipping_template.id.should == 212
      end

      should "have an title" do
        @shipping_template.title.should == "Small Items"
      end

      should "have an user_id" do
        @shipping_template.user_id.should == 14888443
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
etsy-0.3.4 test/unit/etsy/shipping_template_test.rb
etsy-0.3.3 test/unit/etsy/shipping_template_test.rb
cardmagic-etsy-0.3.9 test/unit/etsy/shipping_template_test.rb
cardmagic-etsy-0.3.8 test/unit/etsy/shipping_template_test.rb
cardmagic-etsy-0.3.7 test/unit/etsy/shipping_template_test.rb
cardmagic-etsy-0.3.6 test/unit/etsy/shipping_template_test.rb
cardmagic-etsy-0.3.5 test/unit/etsy/shipping_template_test.rb
cardmagic-etsy-0.3.4 test/unit/etsy/shipping_template_test.rb
cardmagic-etsy-0.3.3 test/unit/etsy/shipping_template_test.rb
cardmagic-etsy-0.3.2 test/unit/etsy/shipping_template_test.rb
etsy-0.3.2 test/unit/etsy/shipping_template_test.rb
etsy-0.3.1 test/unit/etsy/shipping_template_test.rb
etsy-0.3.0 test/unit/etsy/shipping_template_test.rb
etsy-0.2.7 test/unit/etsy/shipping_template_test.rb
etsy-0.2.6 test/unit/etsy/shipping_template_test.rb
etsy-0.2.5 test/unit/etsy/shipping_template_test.rb
etsy-0.2.4 test/unit/etsy/shipping_template_test.rb
etsy-0.2.3 test/unit/etsy/shipping_template_test.rb
etsy-0.2.2 test/unit/etsy/shipping_template_test.rb
tailored-etsy-0.2.2 test/unit/etsy/shipping_template_test.rb