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
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)
require 'google/api_client'
-describe Google::APIClient::Gzip do
+RSpec.describe Google::APIClient::Gzip do
def create_connection(&block)
Faraday.new do |b|
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')
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)
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
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
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
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"
end
-describe Google::APIClient::JWTAsserter do
+RSpec.describe Google::APIClient::JWTAsserter do
include ConnectionHelpers
before do
end
end
-describe Google::APIClient::ComputeServiceAccount do
+RSpec.describe Google::APIClient::ComputeServiceAccount do
include ConnectionHelpers
it 'should query metadata server' do
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'
end
-describe Google::APIClient::Service::Result do
+RSpec.describe Google::APIClient::Service::Result do
describe 'with the plus API' do
before 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',
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'
end
end
-describe Google::APIClient do
+RSpec.describe Google::APIClient do
include ConnectionHelpers
let(:client) { Google::APIClient.new(:application_name => 'API Client Tests') }