Sha256: 5cf705fcdac6b154ef82ffbe9f348e00e3984b361c78eb50f707f0be0a444bdf
Contents?: true
Size: 895 Bytes
Versions: 4
Compression:
Stored size: 895 Bytes
Contents
require 'test_helper' module Vedeu module DSL describe Stream do let(:described) { Vedeu::DSL::Stream } let(:instance) { described.new(model) } let(:model) { Vedeu::Stream.new(parent: parent) } let(:client) {} let(:parent) { Vedeu::Line.new } describe '#initialize' do it { instance.must_be_instance_of(Vedeu::DSL::Stream) } it { instance.instance_variable_get('@model').must_equal(model) } it { instance.instance_variable_get('@client').must_equal(client) } end describe '#stream' do subject { instance.stream { } } it { subject.must_be_instance_of(Vedeu::Streams) } context 'when the block is not given' do subject { instance.stream } it { proc { subject }.must_raise(InvalidSyntax) } end end end # Stream end # DSL end # Vedeu
Version data entries
4 entries across 4 versions & 1 rubygems