Sha256: 972d82f4cbcb98fe60262a6ab1955b552b8d0e41386a4531ebba4cfc46cfafd9
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
require 'spec_helper' describe 'Veritas::Visitable#accept' do subject { object.accept(visitor) } let(:klass) { Class.new { include Visitable } } let(:visitor) { mock('Visitor', :visit => nil) } let(:object) { klass.new } it_should_behave_like 'a command method' it 'sends self to visitor#visit' do visitor.should_receive(:visit).with(object) subject end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/visitable/accept_spec.rb |