Sha256: 4766c2d0b01e8acb6c7270846374fcba5304b79b41c03e28a6f090104831c8f0
Contents?: true
Size: 881 Bytes
Versions: 3
Compression:
Stored size: 881 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require File.dirname(__FILE__) + '/../../lib/etsy4r' describe Etsy4r::ImageParser do include Etsy4rSpecHelper include Etsy4rImageParserSpecHelper before do @image_parser = Etsy4r::ImageParser.new(19781773) @image_parser.parse_url = File.dirname(__FILE__) + "/../fixtures/images.html" end describe 'initialize' do it 'should set the url for the page to parse' do @image_parser.parse_url.should_not be_blank end it 'should set the listing_id' do @image_parser.listing_id.should == 19781773 end it 'should set the images hash' do @image_parser.images.should_not be_nil end end describe 'get_images' do it 'should set images as a hash' do @image_parser.images.should == test_image_hash end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tcocca-etsy4r-0.1.0 | spec/etsy4r/image_parser_spec.rb |
tcocca-etsy4r-0.2.0 | spec/etsy4r/image_parser_spec.rb |
tcocca-etsy4r-0.3.0 | spec/etsy4r/image_parser_spec.rb |