Sha256: 9cdb2004b51b4b0885726b87d4f2c668bc77469b4c5ded4b483a9840b2b9f134
Contents?: true
Size: 919 Bytes
Versions: 2
Compression:
Stored size: 919 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require File.dirname(__FILE__) + '/../../lib/etsy4r' describe Etsy4r::ImageParser do include Etsy4rSpecHelper include Etsy4rImageParserSpecHelper before do Etsy4r::ImageParser.any_instance.stubs(:set_parse_url).returns(File.dirname(__FILE__) + "/../fixtures/images.html") @image_parser = Etsy4r::ImageParser.new(19781773) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tcocca-etsy4r-0.3.1 | spec/etsy4r/image_parser_spec.rb |
tcocca-etsy4r-0.3.2 | spec/etsy4r/image_parser_spec.rb |