Sha256: e44a804c2c1164da9cd6dfdb4796506360c7777eab8b86e430db57917cdd5af8

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 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.arrange.should == @root.reload.self_and_descendants.arrange
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer_pages-0.0.14 spec/lib/core_spec.rb