spec/examples/google_client_spec.rb in oauth2-client-1.1.1 vs spec/examples/google_client_spec.rb in oauth2-client-1.1.2

- old
+ new

@@ -139,11 +139,11 @@ :client_id => '827502413694.apps.googleusercontent.com', :client_secret => 'a2nQpcUm2Dgq1chWdAvbXGTk' }, :headers => { 'Accept' => 'application/json', - 'User-Agent' => 'OAuth2 Ruby Gem 1.1.0', + 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2::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 1.1.0', + 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2::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 1.1.0', + 'User-Agent' => "OAuth2 Ruby Gem #{OAuth2::Version}", 'Content-Type' => 'application/x-www-form-urlencoded' } ) subject.exchange_device_code_for_token( :params => { \ No newline at end of file