spec/oauth2/client_spec.rb in oauth2-client-1.0.0 vs spec/oauth2/client_spec.rb in oauth2-client-1.1.0

- old
+ new

@@ -145,13 +145,13 @@ end end context "with custom connection options" do it "returns custom connection" do - # custom_http = Struct.new('CustomHttpClient') - # conn_options = { :connection_client => custom_http } - # oauth_client = OAuth2::Client.new('example.com', @client_id, @client_secret, conn_options) - # expect(oauth_client.send(:connection)).to be_instance_of custom_http + custom_http = Struct.new('CustomHttpClient', :url, :connection_options) + conn_options = { :connection_client => custom_http } + oauth_client = OAuth2::Client.new('example.com', @client_id, @client_secret, conn_options) + expect(oauth_client.send(:connection)).to be_instance_of custom_http end end end end \ No newline at end of file