Sha256: b225559de3728a65516c8e7982b1dde1e17949b2ff12105ef1e962be8622ca3a
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' shared_examples_for Pacer::Core::Graph::ElementRoute do describe '#properties' do subject { r.properties } its(:count) { should == r.count } its(:element_type) { should == Object } specify 'should all be hashes' do props = subject.each elements = r.each elements.zip(props.to_a).each do |e, p| e.properties.should == p end end end context 'with extensions' do let(:route) { r.add_extension(Tackle::SimpleMixin) } describe '#each without a block' do subject { route.each } specify 'elements should be wrapped' do subject.first.extensions.should include(Tackle::SimpleMixin) end end end end Run.all(:read_only) do use_pacer_graphml_data(:read_only) context Pacer::Core::Graph::EdgesRoute, '2' do it_uses Pacer::Core::Graph::ElementRoute do def r graph.e end end end context Pacer::Core::Graph::VerticesRoute, '2' do it_uses Pacer::Core::Graph::ElementRoute do def r graph.v end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pacer-0.9.1.1-java | spec/pacer/core/graph/element_route_spec.rb |