Sha256: 534e5f3b4cd9b7a0659c5799caa0348b7ce7fe535293a9ee1a78d796fad2ac78
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
# encoding: UTF-8 require 'gooddata/models/domain' describe GoodData::Domain do before(:each) do ConnectionHelper.create_default_connection end after(:each) do GoodData.disconnect end describe '#add_user' do it 'Should add user' do GoodData::Domain.add_user(ConnectionHelper::DEFAULT_DOMAIN, "gemtest#{rand(1e6)}@gooddata.com", 'password') end end describe '#users' do it 'Should list users' do users = GoodData::Domain.users(ConnectionHelper::DEFAULT_DOMAIN) expect(users).to be_instance_of(Array) users.each do |user| expect(user).to be_an_instance_of(GoodData::AccountSettings) end end it 'Accepts pagination options - limit' do users = GoodData::Domain.users(ConnectionHelper::DEFAULT_DOMAIN, {:limit =>1}) expect(users).to be_instance_of(Array) users.each do |user| expect(user).to be_an_instance_of(GoodData::AccountSettings) end end it 'Accepts pagination options - offset' do users = GoodData::Domain.users(ConnectionHelper::DEFAULT_DOMAIN, {:offset => 1}) expect(users).to be_instance_of(Array) users.each do |user| expect(user).to be_an_instance_of(GoodData::AccountSettings) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.3 | spec/unit/models/domain_spec.rb |
gooddata-0.6.2 | spec/unit/models/domain_spec.rb |