Sha256: fdb33c39fb6e1faeb83c9b825f801f8bf878067df753a2322875e4e6a501c6aa

Contents?: true

Size: 446 Bytes

Versions: 3

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'
require "scrapers/imgur"

module Scrapers

  describe "Imgur Scraping" do
    describe "Scrapers" do
      it {expect(Scrapers).to 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
        expect(Scrapers.imgur(url)).to match(%r{http://imgur.com/download/v70StgA/})
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scrapers-3.2.0 spec/scrapers/imgur_spec.rb
scrapers-3.1.0 spec/scrapers/imgur_spec.rb
scrapers-3.0.0 spec/scrapers/imgur_spec.rb