Sha256: e689d0c9de54f5b2c9815c0c69dce3f15ee979938ee7d1772b4009fc44a1b81f
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
require 'spec_helper' describe Octokit::Enterprise do describe 'hostname=' do let(:base_hostname) { 'git.enterprise.example.com' } before do Octokit::Enterprise.configure do |c| c.hostname = base_hostname end end Octokit::Enterprise::Configuration::CUSTOM_ENDPOINTS.each do |endpoint| context endpoint do let(:expected_hostname) do case endpoint when :web_endpoint base_hostname else subdomain = endpoint.to_s.split('_').first [subdomain, base_hostname].join('.') end end subject do URI.parse( Octokit::Client.new.send(endpoint) ) end its(:hostname) do should == expected_hostname end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octokit-enterprise-0.0.2 | spec/octokit/enterprise_spec.rb |