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.2.1 | test/unit/etsy/section_test.rb |