Sha256: 9d1d4e0617aeaf03847c6b58357e2b0d94a8223957be841739980a7a9c29499f

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

require 'gooddata'
require 'gooddata/commands/project'

describe GoodData::Command::Project, :constraint => 'slow' do
  before(:all) do
    @client = ConnectionHelper.create_default_connection

    @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")

    @project = GoodData::Command::Project.build({:spec => @blueprint, :token => ConnectionHelper::GD_PROJECT_TOKEN, :client => @client})
  end

  after(:all) do
    @project.delete unless @project.nil?

    @client.disconnect
  end

  it "should update the project" do
    @blueprint.merge!(@module_blueprint)
    @project.blueprint.datasets.count.should == 3
    @project.blueprint.datasets(:include_date_dimensions => true).count.should == 4
    GoodData::Command::Project.update({:spec => @blueprint, :client => @client, :project => @project})
    @project.blueprint.datasets.count.should == 4
    @project.blueprint.datasets(:include_date_dimensions => true).count.should == 5

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gooddata-0.6.18 spec/integration/command_projects_spec.rb
gooddata-0.6.17 spec/integration/command_projects_spec.rb
gooddata-0.6.16 spec/integration/command_projects_spec.rb
gooddata-0.6.15 spec/integration/command_projects_spec.rb
gooddata-0.6.14 spec/integration/command_projects_spec.rb
gooddata-0.6.13 spec/integration/command_projects_spec.rb
gooddata-0.6.12 spec/integration/command_projects_spec.rb
gooddata-0.6.11 spec/integration/command_projects_spec.rb
gooddata-0.6.10 spec/integration/command_projects_spec.rb
gooddata-0.6.9 spec/integration/command_projects_spec.rb
gooddata-0.6.8 spec/integration/command_projects_spec.rb