shopee 0.0.4 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/spec/shopee_spec.rb CHANGED
@@ -155,13 +155,13 @@ describe 'Testing all categories of mobile01.' do
155
155
  end
156
156
  end
157
157
 
158
- # VCR.use_cassette('shopee') do
159
- # //It should be placed outside.
160
- # scraper = ShopeeTileScrape::ShopeeTile.new
161
- # describe 'Shopee testament using vcr' do
162
- # it 'should return an array of string and name of categories' do
163
- # category_arr = JSON.parse(scraper.titles)
164
- # category_arr.must_equal TESTAMENT_ARR
165
- # end
166
- # end
167
- # end
158
+ VCR.use_cassette('shopee') do
159
+ # //It should be placed outside.
160
+ shopeecate = ShopeeScrape::ShopeeListGoodsByCate.new('電腦資訊')
161
+ describe 'Shopee testament using vcr' do
162
+ it 'should return an array of string and name of categories' do
163
+ good_list = shopeecate.goods
164
+ good_list.length.must_equal 30
165
+ end
166
+ end
167
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheng Jung Wu
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-11-09 00:00:00.000000000 Z
14
+ date: 2015-11-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: minitest