Sha256: cc5e412b10fc0fdf72d3b76ae65674fdfce7bfeafb20808fdee39ba0f7c322f3

Contents?: true

Size: 557 Bytes

Versions: 23

Compression:

Stored size: 557 Bytes

Contents

=begin rdoc

= IMGUR_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'

module Scrapers

  describe "Scrapers" do
    it {Scrapers.should respond_to(:imgur)}
  end

  describe "Fetch the download link" do
    let(:url) {"http://imgur.com/v70StgA"}

    it "should return the download link from a given url" do
      Scrapers.imgur(url).should =~ %r{http://imgur.com/download/v70StgA/}
    end

  end
  


end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
scrapers-2.1.0 spec/scrapers/imgur_spec.rb
scrapers-2.0.2 spec/scrapers/imgur_spec.rb
scrapers-2.0.1 spec/scrapers/imgur_spec.rb
scrapers-2.0.0 spec/scrapers/imgur_spec.rb
scrapers-1.5.6 spec/scrapers/imgur_spec.rb
scrapers-1.5.5 spec/scrapers/imgur_spec.rb
scrapers-1.5.4 spec/scrapers/imgur_spec.rb
scrapers-1.5.3 spec/scrapers/imgur_spec.rb
scrapers-1.5.2 spec/scrapers/imgur_spec.rb
scrapers-1.5.1 spec/scrapers/imgur_spec.rb
scrapers-1.5.0 spec/scrapers/imgur_spec.rb
scrapers-1.4.0 spec/scrapers/imgur_spec.rb
scrapers-1.3.0 spec/scrapers/imgur_spec.rb
scrapers-1.2.0 spec/scrapers/imgur_spec.rb
scrapers-1.1.0 spec/scrapers/imgur_spec.rb
scrapers-1.0.0 spec/scrapers/imgur_spec.rb
scrapers-0.4.3 spec/scrapers/imgur_spec.rb
scrapers-0.4.2 spec/scrapers/imgur_spec.rb
scrapers-0.4.1 spec/scrapers/imgur_spec.rb
scrapers-0.4.0 spec/scrapers/imgur_spec.rb