From 35c38a1ce840f86c12464ab740752f8e0947807e Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Fri, 31 May 2013 15:39:16 -0700 Subject: [PATCH] Minor cleanup on tests --- spec/google/api_client/discovery_spec.rb | 5 +---- spec/google/api_client_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/spec/google/api_client/discovery_spec.rb b/spec/google/api_client/discovery_spec.rb index 520bafc8e..cf6543783 100644 --- a/spec/google/api_client/discovery_spec.rb +++ b/spec/google/api_client/discovery_spec.rb @@ -218,10 +218,7 @@ describe Google::APIClient do it 'should generate valid requests when multivalued parameters are passed' do conn = stub_connection do |stub| stub.post('/prediction/v1.2/training?data=1&data=2') do |env| - # Test is now passing with Faraday 0.9.0.rc1, but small bug in test adapter - #params = env[:params] - params = Faraday::FlatParamsEncoder.decode(env.url.query) - params['data'].should include('1', '2') + env.params['data'].should include('1', '2') end end request = CLIENT.execute( diff --git a/spec/google/api_client_spec.rb b/spec/google/api_client_spec.rb index fb222cc29..4614a6792 100644 --- a/spec/google/api_client_spec.rb +++ b/spec/google/api_client_spec.rb @@ -36,7 +36,7 @@ shared_examples_for 'configurable user agent' do it 'should not allow the user agent to be used with bogus values' do (lambda do client.user_agent = 42 - client.execute(:uri=>'http://www.google.com/') + client.execute(:uri=>'https://www.google.com/') end).should raise_error(TypeError) end @@ -51,7 +51,7 @@ shared_examples_for 'configurable user agent' do [200, {}, ['']] end end - client.execute(:uri=>'http://www.google.com/', :connection => conn) + client.execute(:uri=>'https://www.google.com/', :connection => conn) conn.verify end end