Sha256: 3d3bbeaa4b9fdd4cce5681b06a8a036b975b8c375e89905feb99e494a9f02833
Contents?: true
Size: 672 Bytes
Versions: 19
Compression:
Stored size: 672 Bytes
Contents
require 'spec_helper' describe Sufia::Analytics do before do token = OAuth2::AccessToken.new(nil, nil) allow(subject).to receive(:token).and_return(token) end it 'responds to :config' do expect(subject).to respond_to(:config) end it 'reads its config from a yaml file' do expect(subject.config.keys.sort).to eql ['app_name', 'app_version', 'client_email', 'privkey_path', 'privkey_secret'] end it 'responds to :user' do expect(subject).to respond_to(:user) end it 'instantiates a user' do expect(subject.user).to be_a(Legato::User) end it 'responds to :profile' do expect(subject).to respond_to(:profile) end end
Version data entries
19 entries across 19 versions & 1 rubygems