Sha256: 32b39c119bdb0086de27e2053c6a3879fc031e7b41028e98d06e39c142d5f091
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
require 'spec_helper' describe ConfigStore do let(:config) { described_class } let(:octopus_config) {{ 'url' => 'http://octopus3.yoox.net/api', 'api_key' => 'test' }} let(:teamcity_config) {{ 'pass' => 'test', 'url' => 'http://teamcity.yoox.net/httpAuth/app/rest', 'user' => 'override', }} before(:all) do ConfigStore.defaults_path = 'spec/data/defaults.json' ConfigStore.overrides_path = 'spec/data/overrides.json' ConfigStore.set_config end context 'self.load_config' do it 'loads the defaults' do expect(config.octopus).to eq(octopus_config) end it 'loads the overrides' do expect(config.teamcity).to eq(teamcity_config) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api_deploy-0.1.0 | spec/lib/config_spec.rb |