Sha256: be2620c0b664acd03d44e492249ac3b10c40e2bff77e9dcd4f4c4db7ab583094

Contents?: true

Size: 851 Bytes

Versions: 13

Compression:

Stored size: 851 Bytes

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

describe GoodData::Bricks::Brick do
  it "Has GoodData::Bricks::Brick class" do
    GoodData::Bricks::Brick.should_not be(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

13 entries across 13 versions & 1 rubygems

Version Path
gooddata-1.1.0-java spec/unit/bricks/bricks_spec.rb
gooddata-1.1.0 spec/unit/bricks/bricks_spec.rb
gooddata-1.0.2-java spec/unit/bricks/bricks_spec.rb
gooddata-1.0.2 spec/unit/bricks/bricks_spec.rb
gooddata-1.0.1 spec/unit/bricks/bricks_spec.rb
gooddata-1.0.1-java spec/unit/bricks/bricks_spec.rb
gooddata-1.0.0-java spec/unit/bricks/bricks_spec.rb
gooddata-1.0.0 spec/unit/bricks/bricks_spec.rb
gooddata-0.6.54 spec/unit/bricks/bricks_spec.rb
gooddata-0.6.53 spec/unit/bricks/bricks_spec.rb
gooddata-0.6.52 spec/unit/bricks/bricks_spec.rb
gooddata-0.6.51 spec/unit/bricks/bricks_spec.rb
gooddata-0.6.50 spec/unit/bricks/bricks_spec.rb