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