require "spec_helper" Downloader = Saber::Downloader uri="Microsoft Office 2010 Professional Plus (Activator Included)/KMS Activator for Microsoft Office 2010 Applications x86 x64 Multilingual-FIXISO~DiBYA/mini-KMS_Activator_v1.053.exe" xdescribe Downloader do describe "test everyting" do it "works" do XMLRPC::Client.stub(:new2) d = Downloader.new d.should_receive(:aria2_add).with(["ftp://seedbox/bt/foo/bar.mkv"], {dir: "#{$spec_data}/download/foo"}) d.add("foo/bar.mkv") end end end