Sha256: ac5bd815a5d98ae92c8ba84c1e8276964bde3582be41cf90f56ccc295fa57e33

Contents?: true

Size: 1.31 KB

Versions: 29

Compression:

Stored size: 1.31 KB

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

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/blueprints/test_project_model_spec.json")
    @module_blueprint = GoodData::Model::ProjectBlueprint.from_json("./spec/data/blueprints/additional_dataset_module.json")
    @project = GoodData::Command::Project.build({:spec => @blueprint, :token => ConnectionHelper::GD_PROJECT_TOKEN, environment: ProjectHelper::ENVIRONMENT, :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(:all, :include_date_dimensions => true).count.should == 4
    @project.update_from_blueprint(@blueprint)
    @project.blueprint.datasets.count.should == 4
    @project.blueprint.datasets(:all, :include_date_dimensions => true).count.should == 5
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
gooddata-edge-0.6.27.edge spec/integration/command_projects_spec.rb
gooddata-0.6.49 spec/integration/command_projects_spec.rb
gooddata-0.6.48 spec/integration/command_projects_spec.rb
gooddata-0.6.47 spec/integration/command_projects_spec.rb
gooddata-0.6.46 spec/integration/command_projects_spec.rb
gooddata-0.6.45 spec/integration/command_projects_spec.rb
gooddata-0.6.44 spec/integration/command_projects_spec.rb
gooddata-0.6.43 spec/integration/command_projects_spec.rb
gooddata-0.6.42 spec/integration/command_projects_spec.rb
gooddata-0.6.41 spec/integration/command_projects_spec.rb
gooddata-0.6.40 spec/integration/command_projects_spec.rb
gooddata-0.6.39 spec/integration/command_projects_spec.rb
gooddata-0.6.38 spec/integration/command_projects_spec.rb
gooddata-0.6.37 spec/integration/command_projects_spec.rb
gooddata-0.6.36 spec/integration/command_projects_spec.rb
gooddata-0.6.35 spec/integration/command_projects_spec.rb
gooddata-0.6.34 spec/integration/command_projects_spec.rb
gooddata-0.6.33 spec/integration/command_projects_spec.rb
gooddata-0.6.32 spec/integration/command_projects_spec.rb
gooddata-0.6.31 spec/integration/command_projects_spec.rb