Sha256: 2d3e8b816e0bf18711d8d1ce80c1b757c00f4c2da555f358bb2e7991ce0fdc1c
Contents?: true
Size: 814 Bytes
Versions: 3
Compression:
Stored size: 814 Bytes
Contents
require 'spec_helper' describe TorrentSearch::Trackers::KickAss::Scraper do Given(:search_terms){['ubuntu', '12']} Given(:options){{}} subject{described_class.new(search_terms, options)} describe '#search', :vcr do Given(:torrent){result.first} When(:result){subject.search} Then{result.count.should eq 10} And{torrent.name.should eq "ubuntu 12.04.3 [64 bit]"} And{torrent.size.should eq "708 MB"} And{torrent.seeders.should eq "824"} And{torrent.leechers.should eq "20"} And{torrent.href.should eq "http://torcache.net/torrent/962FCFA03B061506E2E133AC4B5C8BC5151C4C6A.torrent"} And{torrent.filename.should eq "[kickass.to]ubuntu.12.04.3.64.bit"} context 'with limit' do Given(:options){{'limit' => 5}} Then{result.count.should eq 5} end end end
Version data entries
3 entries across 3 versions & 1 rubygems