Sha256: 6b972c6dba2de983823f50d384bba19f2b2944096dc30a220274dea8223ec753
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
require 'spec_helper' require 'google-simple-client' describe 'session integration' do before do File.exist?("#{ENV['HOME']}/.google-simple-client").should be end describe '#authenticate' do it 'works with valid credentials' do session = GoogleSimpleClient::Session.new session.authenticate end it 'raises error with invalid credentials' do session = GoogleSimpleClient::Session.new({email: 'missing'}) expect { session.authenticate }.to raise_error GoogleSimpleClient::Error end end end
Version data entries
3 entries across 3 versions & 1 rubygems