spec/lib/http/options/proxy_spec.rb in http-0.7.4 vs spec/lib/http/options/proxy_spec.rb in http-0.8.0.pre
- old
+ new
@@ -1,18 +1,18 @@
-RSpec.describe HTTP::Options, 'proxy' do
+RSpec.describe HTTP::Options, "proxy" do
let(:opts) { HTTP::Options.new }
- it 'defaults to {}' do
+ it "defaults to {}" do
expect(opts.proxy).to eq({})
end
- it 'may be specified with with_proxy' do
- opts2 = opts.with_proxy(:proxy_address => '127.0.0.1', :proxy_port => 8080)
+ it "may be specified with with_proxy" do
+ opts2 = opts.with_proxy(:proxy_address => "127.0.0.1", :proxy_port => 8080)
expect(opts.proxy).to eq({})
- expect(opts2.proxy).to eq(:proxy_address => '127.0.0.1', :proxy_port => 8080)
+ expect(opts2.proxy).to eq(:proxy_address => "127.0.0.1", :proxy_port => 8080)
end
- it 'accepts proxy address, port, username, and password' do
- opts2 = opts.with_proxy(:proxy_address => '127.0.0.1', :proxy_port => 8080, :proxy_username => 'username', :proxy_password => 'password')
- expect(opts2.proxy).to eq(:proxy_address => '127.0.0.1', :proxy_port => 8080, :proxy_username => 'username', :proxy_password => 'password')
+ it "accepts proxy address, port, username, and password" do
+ opts2 = opts.with_proxy(:proxy_address => "127.0.0.1", :proxy_port => 8080, :proxy_username => "username", :proxy_password => "password")
+ expect(opts2.proxy).to eq(:proxy_address => "127.0.0.1", :proxy_port => 8080, :proxy_username => "username", :proxy_password => "password")
end
end