Sha256: bcdd56540d2ac7d7b14e8d998bc1878af010b5bf164d67bb608704bf61a3ce82

Contents?: true

Size: 1.29 KB

Versions: 13

Compression:

Stored size: 1.29 KB

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
gooddata-0.6.20 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.19 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.18 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.17 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.16 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.15 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.14 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.13 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.12 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.11 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.10 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.9 spec/unit/commands/command_scaffold_spec.rb
gooddata-0.6.8 spec/unit/commands/command_scaffold_spec.rb