spec/github/request/oauth2_spec.rb in github_api-0.12.1 vs spec/github/request/oauth2_spec.rb in github_api-0.12.2

- old
+ new

@@ -38,11 +38,11 @@ result[:url].query.should eql 'access_token=abc123&q=query' end it "creates header for ad hoc access token" do result = process(:q => 'query', :access_token => 'abc123') - auth_header(result).should eql 'Token token="abc123"' + auth_header(result).should eql 'token abc123' end end context 'default token configured' do let(:options) { 'ABC' } @@ -51,16 +51,16 @@ result = process(:q => 'query') result[:url].query.should eql 'access_token=ABC&q=query' end it "creates header for access token" do - auth_header(process).should eql 'Token token="ABC"' + auth_header(process).should eql 'token ABC' end it "overrides default with explicit token" do result = process(:q => 'query', :access_token => 'abc123') result[:url].query.should eql 'access_token=abc123&q=query' - auth_header(result).should eql 'Token token="abc123"' + auth_header(result).should eql 'token abc123' end it "clears default token with explicit one" do result = process(:q => 'query', :access_token => nil) result[:url].query.should eql 'q=query&access_token'