Sha256: 9be9b48726a796723229165ee919f928611eb7e3d0a7beaed916417726a90f65

Contents?: true

Size: 540 Bytes

Versions: 9

Compression:

Stored size: 540 Bytes

Contents

require "nicoquery/crawler/bulk_scraping"


describe "NicoQuery::Crawler" do
  describe "VideoArray" do
    before do
      @acquired_movies = []

      NicoQuery::Crawler::BulkScraping.execute(['sm20415650', 'sm9']) do |result|
        @acquired_movies.push result
      end
    end

    it "should sorted by published date" do
      expect(@acquired_movies[0].publish_date).to be
    end

    it "should scrape movie's info the number of times -1 that returns :continue" do
      expect(@acquired_movies.length).to eq 2
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nicoquery-0.1.7 spec/crawler/bulk_scraping_spec.rb
nicoquery-0.1.6.1 spec/crawler/bulk_scraping_spec.rb
nicoquery-0.1.6 spec/crawler/bulk_scraping_spec.rb
nicoquery-0.1.5 spec/crawler/bulk_scraping_spec.rb
nicoquery-0.1.4 spec/crawler/bulk_scraping_spec.rb
nicoquery-0.1.3 spec/crawler/bulk_scraping_spec.rb
nicoquery-0.1.2 spec/crawler/bulk_scraping_spec.rb
nicoquery-0.1.1 spec/crawler/bulk_scraping_spec.rb
nicoquery-0.1.0 spec/crawler/bulk_scraping_spec.rb