Sha256: 98ed796528485d774ac579e417310a38b1635801e15a562446ab571bd0704aba
Contents?: true
Size: 1.11 KB
Versions: 6
Compression:
Stored size: 1.11 KB
Contents
# encoding: UTF-8 require 'gooddata/connection' require 'gooddata/core/connection' require 'gooddata/core/project' require 'gooddata/models/project' describe 'GoodData - project' do before(:each) do ConnectionHelper.create_default_connection end after(:each) do GoodData.disconnect end describe '#project=' do it 'Assigns nil' do GoodData.project = nil end it 'Assigns project using project ID' do GoodData.project = ProjectHelper::PROJECT_ID end it 'Assigns project using project URL' do GoodData.project = ProjectHelper::PROJECT_URL end it 'Assigns project directly' do GoodData.project = GoodData::Project[ProjectHelper::PROJECT_ID] end end describe '#project' do it 'Returns project assigned' do GoodData.project = nil GoodData.project.should == nil GoodData.project = ProjectHelper::PROJECT_ID GoodData.project.should_not == nil end end describe '#with_project' do it 'Uses project specified' do GoodData.with_project GoodData::Project[ProjectHelper::PROJECT_ID] do end end end end
Version data entries
6 entries across 6 versions & 1 rubygems