RSpec 3 syntax
authorAbdelkader Boudih <terminale@gmail.com>
Wed, 17 Sep 2014 15:03:33 +0000 (15:03 +0000)
committerAbdelkader Boudih <terminale@gmail.com>
Wed, 8 Oct 2014 12:02:36 +0000 (12:02 +0000)
spec/google/api_client/batch_spec.rb
spec/google/api_client/discovery_spec.rb
spec/google/api_client/gzip_spec.rb
spec/google/api_client/media_spec.rb
spec/google/api_client/request_spec.rb
spec/google/api_client/result_spec.rb
spec/google/api_client/service_account_spec.rb
spec/google/api_client/service_spec.rb
spec/google/api_client/simple_file_store_spec.rb
spec/google/api_client_spec.rb

index 786c16a77737620e931e3d0e1621af7bc6bfed4a..3aa95a88b61ff52f7a30ba85013a1e094254422b 100644 (file)
@@ -15,7 +15,7 @@
 require 'spec_helper'
 require 'google/api_client'
 
-describe Google::APIClient::BatchRequest do
+RSpec.describe Google::APIClient::BatchRequest do
   CLIENT = Google::APIClient.new(:application_name => 'API Client Tests') unless defined?(CLIENT)
 
   after do
index a047bab038dc1306453422fcd80f505a2ca9a80a..d1c23759ff523698bfad7f901ed8c55368e1f05d 100644 (file)
@@ -23,7 +23,7 @@ require 'compat/multi_json'
 require 'signet/oauth_1/client'
 require 'google/api_client'
 
-describe Google::APIClient do
+RSpec.describe Google::APIClient do
   include ConnectionHelpers
   CLIENT = Google::APIClient.new(:application_name => 'API Client Tests') unless defined?(CLIENT)
 
index e05e907370581ecdc93b3d5f24ba9f0ed48955f1..9448b009f1e1ec2df15ae4c529f896187ecc4c82 100644 (file)
@@ -16,7 +16,7 @@ require 'spec_helper'
 
 require 'google/api_client'
 
-describe Google::APIClient::Gzip do
+RSpec.describe Google::APIClient::Gzip do
 
   def create_connection(&block)
     Faraday.new do |b|
index 0fce150f55a136e89d430111cc8a54fa68a9d6e1..f32b31efc0e553aa8a5bded9fa31137483b92c0c 100644 (file)
@@ -18,7 +18,7 @@ require 'google/api_client'
 
 fixtures_path = File.expand_path('../../../fixtures', __FILE__)
 
-describe Google::APIClient::UploadIO do
+RSpec.describe Google::APIClient::UploadIO do
   it 'should reject invalid file paths' do
     expect(lambda do
       media = Google::APIClient::UploadIO.new('doesnotexist', 'text/plain')
@@ -56,7 +56,7 @@ describe Google::APIClient::UploadIO do
   end
 end
 
-describe Google::APIClient::RangedIO do
+RSpec.describe Google::APIClient::RangedIO do
   before do
     @source = StringIO.new("1234567890abcdef")
     @io = Google::APIClient::RangedIO.new(@source, 1, 5)
@@ -104,7 +104,7 @@ describe Google::APIClient::RangedIO do
     
 end
 
-describe Google::APIClient::ResumableUpload do
+RSpec.describe Google::APIClient::ResumableUpload do
   CLIENT = Google::APIClient.new(:application_name => 'API Client Tests') unless defined?(CLIENT)
 
   after do
index 760a8a34b08369eb2e0ef1634e0c68c18e5d950a..c63f750dc6d55aeb0b8185d0b6b927014fb62454 100644 (file)
@@ -16,7 +16,7 @@ require 'spec_helper'
 
 require 'google/api_client'
 
-describe Google::APIClient::Request do
+RSpec.describe Google::APIClient::Request do
   CLIENT = Google::APIClient.new(:application_name => 'API Client Tests') unless defined?(CLIENT)
 
   it 'should normalize parameter names to strings' do
index 8c5f09bc965b902181ccb9d93d24985011a3fb6c..67c63b77cfcc34472ad02226949c70f8d068c00e 100644 (file)
@@ -16,7 +16,7 @@ require 'spec_helper'
 
 require 'google/api_client'
 
-describe Google::APIClient::Result do
+RSpec.describe Google::APIClient::Result do
   CLIENT = Google::APIClient.new(:application_name => 'API Client Tests') unless defined?(CLIENT)
 
   describe 'with the plus API' do
index f700dfe19d607846af1cb0892d50f94c497c4530..d4d9a36b659ae43c6384f31030dcc3883eab8487 100644 (file)
@@ -18,7 +18,7 @@ require 'google/api_client'
 
 fixtures_path = File.expand_path('../../../fixtures', __FILE__)
 
-describe Google::APIClient::KeyUtils do
+RSpec.describe Google::APIClient::KeyUtils do
   it 'should read PKCS12 files from the filesystem' do
     if RUBY_PLATFORM == 'java' && RUBY_VERSION.start_with?('1.8')
       pending "Reading from PKCS12 not supported on jruby 1.8.x"
@@ -53,7 +53,7 @@ describe Google::APIClient::KeyUtils do
 
 end
 
-describe Google::APIClient::JWTAsserter do
+RSpec.describe Google::APIClient::JWTAsserter do
   include ConnectionHelpers
 
   before do
@@ -146,7 +146,7 @@ describe Google::APIClient::JWTAsserter do
   end
 end
 
-describe Google::APIClient::ComputeServiceAccount do
+RSpec.describe Google::APIClient::ComputeServiceAccount do
   include ConnectionHelpers
 
   it 'should query metadata server' do
index e9c216454f508ff5a6926ce7be5378554c305e34..e5184372c2cc63ab25b548139fe95d0678852162 100644 (file)
@@ -21,7 +21,7 @@ require 'google/api_client/service'
 
 fixtures_path = File.expand_path('../../../fixtures', __FILE__)
 
-describe Google::APIClient::Service do
+RSpec.describe Google::APIClient::Service do
   include ConnectionHelpers
 
   APPLICATION_NAME = 'API Client Tests'
@@ -288,7 +288,7 @@ describe Google::APIClient::Service do
 end
 
 
-describe Google::APIClient::Service::Result do
+RSpec.describe Google::APIClient::Service::Result do
 
   describe 'with the plus API' do
     before do
@@ -492,7 +492,7 @@ describe Google::APIClient::Service::Result do
   end
 end
 
-describe Google::APIClient::Service::BatchRequest do
+RSpec.describe Google::APIClient::Service::BatchRequest do
   describe 'with the discovery API' do
     before do
       @discovery = Google::APIClient::Service.new('discovery', 'v1',
index cc7208d6ea73d3f12ba468e575f9395f6ad5d8b3..cb7d89847595a2cf9dbce85b1b7101a9cca6857d 100644 (file)
@@ -18,7 +18,7 @@ require 'spec_helper'
 
 require 'google/api_client/service/simple_file_store'
 
-describe Google::APIClient::Service::SimpleFileStore do
+RSpec.describe Google::APIClient::Service::SimpleFileStore do
 
   FILE_NAME = 'test.cache'
 
index 5d61f73ea8d523988ab89174327c3f88c9ee27bf..6cd4c8ee4d90e86dd7eb42ebdff5831a98ae0c22 100644 (file)
@@ -54,7 +54,7 @@ shared_examples_for 'configurable user agent' do
   end
 end
 
-describe Google::APIClient do
+RSpec.describe Google::APIClient do
   include ConnectionHelpers
 
   let(:client) { Google::APIClient.new(:application_name => 'API Client Tests') }