spec/etsy4r/image_parser_spec.rb in tcocca-etsy4r-0.3.0 vs spec/etsy4r/image_parser_spec.rb in tcocca-etsy4r-0.3.1
- old
+ new
@@ -4,11 +4,11 @@
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)
- @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