Sha256: 30b77411b0e82ec5a846f94f3178a4a3fdfed8a56b1b92e0e525f4bb58826d5e
Contents?: true
Size: 912 Bytes
Versions: 35
Compression:
Stored size: 912 Bytes
Contents
require 'spec_helper' shared_examples_for '#process' do describe 'simple element route' do subject do c = 0 source.process { c += 1 } end its(:first) { should == source.first } its(:element_type) { should == :vertex } end describe 'with extensions' do let(:extended) { source.add_extensions([Tackle::SimpleMixin]) } let(:exts) { Set[] } subject { extended.process { |v| exts << v.extensions } } its('first.extensions') { should == [Tackle::SimpleMixin] } it 'should have the right extensions in the block' do subject.first exts.first.should == [Tackle::SimpleMixin] end end end Run.tg :read_only do use_pacer_graphml_data :read_only context 'on route' do it_uses '#process' do let(:source) { graph.v } end end context 'on element' do it_uses '#process' do let(:source) { pangloss } end end end
Version data entries
35 entries across 35 versions & 1 rubygems