spec/models/geoff_spec.rb in geoff-0.0.5 vs spec/models/geoff_spec.rb in geoff-0.0.6
- old
+ new
@@ -132,37 +132,35 @@
(Branch)-[:all]->(starbucks_branch)
(Starbucks)-[:owns]->(starbucks_branch)
EOS
}
- specify "with parent node is root node, but no relationship,
- don't create relationship to root node" do
+ specify "with parent node is root node, but no relationship, don't create relationship to root node" do
Geoff.new(Cafe, Branch) do
cafe 'Starbucks' do
children 'owns' do
#create relationship to parent node of type owns (comes from children DSL)
branch 'starbucks_branch'
end
end
end.to_geoff.should == expected
+ end
end
- end
describe 'called second time' do
let(:node) do
Geoff.new(Cafe) do
cafe 'Starbucks'
end
end
- let(:expected_geoff) do
+ let(:geoff_returned_by_first_call) do
node.to_geoff
end
it 'returns same geoff as on first call' do
- pending 'Not implemented yet'
- node.to_geoff.should == expected_geoff
+ node.to_geoff.should == geoff_returned_by_first_call
end
end
end
end
end