Sha256: 27449c60d5d5fd0aef99cb7afaa01fb819bc00d0bb689682e8a91ec089ff3b6f

Contents?: true

Size: 749 Bytes

Versions: 4

Compression:

Stored size: 749 Bytes

Contents

class SortPagesDataset < Dataset::Base
  def load
    # TODO Investigate why inflectors are breaking here
    create_record :page, :one,
      :title  => 'One',
      :slug   => 'one',
      :breadcrumb => 'one',
      :position => 1
    
    create_record :page, :two,
      :title  => 'Two',
      :slug   => 'two',
      :breadcrumb => 'two',
      :position => 1,
      :parent => pages(:one)
      
    create_record :page, :three,
      :title  => 'Three',
      :slug   => 'three',
      :breadcrumb => 'three',
      :position => 2,
      :parent => pages(:one)
      
    create_record :page, :four,
      :title  => 'Four',
      :slug   => 'four',
      :breadcrumb => 'four',
      :position => 3,
      :parent => pages(:one)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-drag_order-extension-0.5.0 spec/datasets/sort_pages.rb
radiant-drag_order-extension-0.4.8 spec/datasets/sort_pages.rb
radiant-drag_order-extension-0.4.7 spec/datasets/sort_pages.rb
radiant-drag_order-extension-0.4.6 spec/datasets/sort_pages.rb