Sha256: 1fb4e0f9bd071cf36a91ec03a0e2031cde71a9f996ad43690566f05f1898f751
Contents?: true
Size: 838 Bytes
Versions: 1
Compression:
Stored size: 838 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 } let(:client) {} 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::Stream) } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.3.5 | test/lib/vedeu/dsl/stream_test.rb |