Sha256: a13d53f0aa2477c8277254b00a99e59760e58a9556ed40f7767c9b789fb04497
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
require File.expand_path("../../../spec_helper", __FILE__) module Bamboo module Client module Http describe Abstract do it 'should translate a path with prefix' do http = Http::Abstract.new('http://example.com/bamboo') http.send(:uri_for, '/foobar').should == 'http://example.com/bamboo/foobar' end it 'should translate a path without prefix' do http = Http::Abstract.new('http://example.com/') http.send(:uri_for, '/foobar').should == 'http://example.com/foobar' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bamboo-client-0.1.9 | spec/bamboo-client/http/abstract_spec.rb |