Sha256: a5742c48b27e5b750114d11c433e5d27a2fd26d21feb5e110affed9cf808e66f
Contents?: true
Size: 482 Bytes
Versions: 9
Compression:
Stored size: 482 Bytes
Contents
require 'spec_helper' describe 'Core' do describe 'arrange' do it 'should generate proper hash' do @root = Fabricate :page, :layout_name => 'foo_layout' @foo = Fabricate :page, :slug => 'foo', :parent => @root @bar = Fabricate :page, :slug => 'bar', :parent => @foo @baz = Fabricate :page, :slug => 'baz', :parent => @root @root.reload.self_and_descendants.all.arranged.should == @root.reload.self_and_descendants.arrange end end end
Version data entries
9 entries across 9 versions & 1 rubygems