Sha256: 5feeae3bb3f4c643549b6bc6608b53edf86c05d5862262e06624c8df422bf19a
Contents?: true
Size: 751 Bytes
Versions: 7
Compression:
Stored size: 751 Bytes
Contents
require "test_helper" describe DownloadTV::Torrent do before do @t = DownloadTV::Torrent.new end describe "when creating the object" do it "will have some grabbers" do @t.g_names.empty?.must_equal false @t.g_instances.empty?.must_equal false @t.n_grabbers.must_be :>, 0 end it "will have the right amount of grabbers" do # Initiakize calls change_grabbers @t.n_grabbers.must_equal @t.g_names.size + 1 @t.g_instances.size.must_equal 1 end it "will populate the instances" do @t.n_grabbers.times.each { @t.change_grabbers } @t.g_names.empty?.must_equal true @t.g_instances.empty?.must_equal false @t.g_instances.size.must_equal @t.n_grabbers end # TODO: Test filter_shows(links) end end
Version data entries
7 entries across 7 versions & 1 rubygems