Sha256: cd1edcd0fb100b2b0b85a3013f4edf32a142b36889479a241ffd0956dca60fc7
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
# Copyright (c) Microsoft Corporation # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY # IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR # PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. # # See the Apache Version 2.0 License for specific language governing # permissions and limitations under the License. require 'spec_helper' ENDPOINT = Yam::Configuration::DEFAULT_API_ENDPOINT describe Yam::Client, '#get' do it 'makes requests' do stub_request(:get, ENDPOINT) access_token = 'ABC123' instance = Yam::Client.new(access_token, ENDPOINT) instance.get('/') expect(a_request(:get, ENDPOINT)).to have_been_made end end describe Yam::Client, '#post' do it 'makes requests' do stub_request(:post, ENDPOINT) access_token = 'ABC123' instance = Yam::Client.new(access_token, ENDPOINT) instance.post('/') expect(a_request(:post, ENDPOINT)).to have_been_made end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yam-0.0.4 | spec/yam/client_spec.rb |
yam-0.0.3 | spec/yam/client_spec.rb |