Sha256: 5f3037f5a7ce3864f0de0ba5a21d47869173fe70bce349402b546daca2766e4d

Contents?: true

Size: 674 Bytes

Versions: 21

Compression:

Stored size: 674 Bytes

Contents

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

module Etsy
  class SectionTest < Test::Unit::TestCase
    context "An instance of the Section class" do
      setup do
        data = read_fixture('section/getShopSection.json')
        @section = Section.new(data.first)
      end

      should "have an id" do
        @section.id.should == 11045327
      end

      should "have an title" do
        @section.title.should == "Blue Items"
      end

      should "have an user_id" do
        @section.user_id.should == 9569349
      end

      should "have an active_listing_count" do
        @section.active_listing_count.should == 7
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

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