Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 066007551d
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 0.609 kB
require 'spec_helper'
module Micetrap
module Services
describe Torrent do
describe "#default_ports" do
it 'returns the default ports' do
Torrent.new.send(:default_ports).should == []
end
end
describe "#response" do
it 'returns a response' do
Torrent.new.send(:response).should be_a(String)
end
it 'caches the response for cohesion' do
service = Torrent.new
response = service.send(:response)
service.instance_variable_get(:@response).should == response
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.