Sha256: 356e1163b0f9c64c6a0dad4efdf9feb32b6c2a8d9498ae410cb485721552cefe
Contents?: true
Size: 756 Bytes
Versions: 7
Compression:
Stored size: 756 Bytes
Contents
=begin rdoc = DOWNLOAD_SPEC.RB *Author*:: Tamara Temple <tamara@tamaratemple.com> *Since*:: 2013-05-27 *Copyright*:: (c) 2013 Tamara Temple Web Development *License*:: MIT =end require 'spec_helper' require 'tmpdir' module Scrapers describe Download do it {Scrapers::Download.should respond_to :download} context "download" do before(:all) do @url="http://imgur.com/download/v70StgA/%2Asnrrrrrrrrrrrf%21%2A" VCR.use_cassette("download.cassette") do @file = Scrapers::Download.download(@url,'tmp') end end it "saves the file" do @file.should =~ /.*snrrrrrrrrrrrf.*Imgur\.jpg/ File.exist?(@file).should be_true end end end end
Version data entries
7 entries across 7 versions & 1 rubygems