Sha256: d8396701215a539e07f53c6f16169ef8eed188e39b461a36bd6e598f870b216f

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

require 'gooddata'
require 'gooddata/commands/projects'
require 'pry'

describe GoodData::Command::Projects, :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")

    GoodData.connect("svarovsky+gem_tester@gooddata.com", "jindrisska")
    @project = GoodData::Command::Projects.build({:spec => @blueprint, :token => 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|
      GoodData::Command::Projects.update({:spec => @blueprint, :project => p})
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gooddata-0.6.0.pre11 spec/integration/command_projects_spec.rb