Sha256: e27bc52c4b6ed53ae681194d695c101c75a4b8f22c3c639162d05709854c47ae
Contents?: true
Size: 944 Bytes
Versions: 9
Compression:
Stored size: 944 Bytes
Contents
require 'spec_helper' describe Minimart::Utils::Http do describe '::get_json' do pending end describe '::get' do pending end describe '::get_binary' do pending end describe '::build_url' do context 'when no protocol is provided' do subject { described_class.build_url('example.com') } it { is_expected.to eq 'http://example.com' } end context 'when a protocol is provided' do subject { described_class.build_url('git://example.com') } it { is_expected.to eq 'git://example.com' } end context 'when a sub url is provided' do subject { described_class.build_url('http://example.com', 'path') } it { is_expected.to eq 'http://example.com/path' } end context 'when the path has a leading slash' do subject { described_class.build_url('http://example.com/', '/path') } it { is_expected.to eq 'http://example.com/path' } end end end
Version data entries
9 entries across 9 versions & 1 rubygems