Sha256: 2f39169f5c5175628df541f42e2e18cd95e5ea53a79fc8fe93c3d5ef1a61df1c
Contents?: true
Size: 899 Bytes
Versions: 11
Compression:
Stored size: 899 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
11 entries across 11 versions & 1 rubygems