Sha256: 8df28772d389da2c8df8b5d1cb3908ec6879a437d1916bb7dc0181ebe8efe9fb
Contents?: true
Size: 1.5 KB
Versions: 5
Compression:
Stored size: 1.5 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/commands/scaffold' describe GoodData::Command::Scaffold do before(:all) do @suffix = Time.now.strftime('%Y%m%d%H%M%S') end before(:each) do @client = ConnectionHelper.create_default_connection end after(:each) do @client.disconnect end it "Is Possible to create GoodData::Command::Scaffold instance" do cmd = GoodData::Command::Scaffold.new() cmd.should be_a(GoodData::Command::Scaffold) end describe "#brick" do before(:each) do @brick_name = "test_brick_#{@suffix}" end after(:each) do FileUtils.rm_rf @brick_name end it "Throws ArgumentError exception if no name specified" do expect do GoodData::Command::Scaffold.brick(nil) end.to raise_exception end it "Scaffolds new brick" do GoodData::Command::Scaffold.brick(@brick_name) end end describe "#project" do before(:each) do @project_name = "test_project_#{@suffix}" end after(:each) do FileUtils.rm_rf @project_name end it "Throws ArgumentError exception if no name specified" do expect do GoodData::Command::Scaffold.project(nil) end.to raise_exception end it "Scaffolds new project" do GoodData::Command::Scaffold.project(@project_name) end end end
Version data entries
5 entries across 5 versions & 1 rubygems