spec/examples/google_client_spec.rb in oauth2-client-1.1.3 vs spec/examples/google_client_spec.rb in oauth2-client-2.0.0

- old
+ new

@@ -88,11 +88,11 @@ :client_id => '827502413694.apps.googleusercontent.com', :client_secret => 'a2nQpcUm2Dgq1chWdAvbXGTk' }, :headers => { 'Accept' => "application/json", - 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2::Version}", + 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2Client::Version}", 'Content-Type' => "application/x-www-form-urlencoded" } ) response = subject.exchange_auth_code_for_token( :params => { @@ -139,11 +139,11 @@ :client_id => '827502413694.apps.googleusercontent.com', :client_secret => 'a2nQpcUm2Dgq1chWdAvbXGTk' }, :headers => { 'Accept' => 'application/json', - 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2::Version}", + 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2Client::Version}", 'Content-Type' => 'application/x-www-form-urlencoded' } ) subject.refresh_access_token( :params => { @@ -160,11 +160,11 @@ :scope => 'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile', :client_id => '827502413694.apps.googleusercontent.com' }, :headers => { 'Accept' => 'application/json', - 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2::Version}", + 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2Client::Version}", 'Content-Type' => 'application/x-www-form-urlencoded' } ) subject.get_device_code( :params => { @@ -182,10 +182,10 @@ :state => '/profile', :code => 'G3Y6jU3a' }, :headers => { 'Accept' => 'application/json', - 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2::Version}", + 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2Client::Version}", 'Content-Type' => 'application/x-www-form-urlencoded' } ) subject.exchange_device_code_for_token( :params => { \ No newline at end of file