Sha256: 361fc5b3891968cfe31b193fa293469cd19bcfe2e7fc4d861e09658713c082a3

Contents?: true

Size: 557 Bytes

Versions: 6

Compression:

Stored size: 557 Bytes

Contents

require 'faker'

FactoryGirl.define do

  factory :menu do
    name Faker::Lorem.word
    lang_id 1
    parent_id 1
    seq 1
    editable true 

    factory :root_pl do
      id 1
      lang_id 1
      parent_id nil
    end 

    factory :root_en do
      id 2
      lang_id 2
      parent_id nil
    end

    factory :top_pl do
      lang_id 1
      parent_id 1
    end

    factory :menu_without_lang do
      name Faker::Lorem.word
      seq 1
      editable true 
    end

    factory :menu_en, traits: [:en] do
      parent_id 2
    end

  end

  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mokio-0.0.11 spec/factories/menus_factory.rb
mokio-0.0.10 spec/factories/menus_factory.rb
mokio-0.0.9 spec/factories/menus_factory.rb
mokio-0.0.8 spec/factories/menus_factory.rb
mokio-0.0.6 spec/factories/menus_factory.rb
mokio-0.0.5 spec/factories/menus_factory.rb