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

Version Path
puffer_pages-0.5.1 spec/lib/core_spec.rb
puffer_pages-0.5.0 spec/lib/core_spec.rb
puffer_pages-0.1.1 spec/lib/core_spec.rb
puffer_pages-0.1.0 spec/lib/core_spec.rb
puffer_pages-0.0.19 spec/lib/core_spec.rb
puffer_pages-0.0.18 spec/lib/core_spec.rb
puffer_pages-0.0.17 spec/lib/core_spec.rb
puffer_pages-0.0.16 spec/lib/core_spec.rb
puffer_pages-0.0.15 spec/lib/core_spec.rb