Sha256: 7f407fedce520bbd4e54a1f0dfa0a3fca5d7a3b86d3d4f9b7140ebd1018ef2a0
Contents?: true
Size: 879 Bytes
Versions: 3
Compression:
Stored size: 879 Bytes
Contents
require 'gooddata' require 'gooddata/commands/project' describe GoodData::Command::Project, :constraint => 'slow' do before(:all) do @blueprint = GoodData::Model::ProjectBlueprint.from_json("./spec/data/test_project_model_spec.json") @module_blueprint = GoodData::Model::ProjectBlueprint.from_json("./spec/data/additional_dataset_module.json") ConnectionHelper::create_default_connection @project = GoodData::Command::Project.build({:spec => @blueprint, :token => ConnectionHelper::GD_PROJECT_TOKEN}) end after(:all) do @project.delete unless @project.nil? end it "should update the project" do @blueprint.merge!(@module_blueprint) GoodData.with_project(@project) do |p| p.datasets.count.should == 4 GoodData::Command::Project.update({:spec => @blueprint, :project => p}) p.datasets.count.should == 5 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.4 | spec/integration/command_projects_spec.rb |
gooddata-0.6.3 | spec/integration/command_projects_spec.rb |
gooddata-0.6.2 | spec/integration/command_projects_spec.rb |