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