Sha256: 827e58dddd33240902c0c8f3d701c800bb46656d9706f4cacd048263ef02d76c

Contents?: true

Size: 1.33 KB

Versions: 13

Compression:

Stored size: 1.33 KB

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2017 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)
    expect(@project.blueprint.datasets.count).to eq(3)
    expect(@project.blueprint.datasets(:all, :include_date_dimensions => true).count).to eq(4)
    @project.update_from_blueprint(@blueprint)
    expect(@project.blueprint.datasets.count).to eq(4)
    expect(@project.blueprint.datasets(:all, :include_date_dimensions => true).count).to eq(5)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gooddata-1.1.0-java spec/integration/command_projects_spec.rb
gooddata-1.1.0 spec/integration/command_projects_spec.rb
gooddata-1.0.2-java spec/integration/command_projects_spec.rb
gooddata-1.0.2 spec/integration/command_projects_spec.rb
gooddata-1.0.1 spec/integration/command_projects_spec.rb
gooddata-1.0.1-java spec/integration/command_projects_spec.rb
gooddata-1.0.0-java spec/integration/command_projects_spec.rb
gooddata-1.0.0 spec/integration/command_projects_spec.rb
gooddata-0.6.54 spec/integration/command_projects_spec.rb
gooddata-0.6.53 spec/integration/command_projects_spec.rb
gooddata-0.6.52 spec/integration/command_projects_spec.rb
gooddata-0.6.51 spec/integration/command_projects_spec.rb
gooddata-0.6.50 spec/integration/command_projects_spec.rb