Sha256: 4417692fda2f7a87bea1c77065ddf613acb1a1da5e3b0882574f2f68891a5f9b

Contents?: true

Size: 850 Bytes

Versions: 29

Compression:

Stored size: 850 Bytes

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/bricks/bricks'

describe GoodData::Bricks::Brick do
  it "Has GoodData::Bricks::Brick class" do
    GoodData::Bricks::Brick.should_not == nil
  end

  describe '#version' do
    it 'Throws NotImplemented on base class' do
      brick = GoodData::Bricks::Brick.new
      expect do
        brick.version
      end.to raise_error(NotImplementedError)
    end
  end

  it "should be possible to execute custom brick" do
    class CustomBrick < GoodData::Bricks::Brick

      def call(params)
        puts 'hello'
      end
    end

    p = GoodData::Bricks::Pipeline.prepare([CustomBrick])

    p.call({})
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

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