Sha256: 122198d3ef23c038ed66f08d9b278af21437adf81a053de97fbe00e4b22076de
Contents?: true
Size: 636 Bytes
Versions: 2
Compression:
Stored size: 636 Bytes
Contents
require 'spec_helper' require 'open-uri' describe Sunbro::Settings do before :each do @proxy_url = 'http://proxy1.oddwonout.com:8888/' Sunbro::Settings.configure {|c| c.proxy_url = @proxy_url} end describe '::proxy_url' do it 'returns the proxy url' do expect(Sunbro::Settings.proxy_url).to eq(@proxy_url) end end describe '::proxy_host' do it 'returns the proxy host' do expect(Sunbro::Settings.proxy_host).to eq('proxy1.oddwonout.com') end end describe '::proxy_port' do it 'returns the proxy port' do expect(Sunbro::Settings.proxy_port).to eq(8888) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunbro-0.1.3 | spec/settings_spec.rb |
sunbro-0.1.2 | spec/settings_spec.rb |