Sha256: ebcea72311e4be14430a342db43aa30f136d6ad47b0acf2825936327bc3d3713

Contents?: true

Size: 313 Bytes

Versions: 7

Compression:

Stored size: 313 Bytes

Contents

require_relative "../../spec_helper"

require File.expand_path("lib/email_crawler")

module EmailCrawler
  describe PageLinks do
    let(:max_links) { 25 }

    it "returns the first N internal links" do
      PageLinks.for("http://www.visitberlin.de/en", max_links).length.must_equal max_links
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
email_crawler-0.0.8 spec/lib/email_crawler/page_links_spec.rb
email_crawler-0.0.7 spec/lib/email_crawler/page_links_spec.rb
email_crawler-0.0.6 spec/lib/email_crawler/page_links_spec.rb
email_crawler-0.0.5 spec/lib/email_crawler/page_links_spec.rb
email_crawler-0.0.4 spec/lib/email_crawler/page_links_spec.rb
email_crawler-0.0.3 spec/lib/email_crawler/page_links_spec.rb
email_crawler-0.0.2 spec/lib/email_crawler/page_links_spec.rb