Sha256: f0a7b66f65d4b08e8fc1ef33fe5191629da9d44a397caa6a3c8bb090b76ea4e9

Contents?: true

Size: 645 Bytes

Versions: 7

Compression:

Stored size: 645 Bytes

Contents

FactoryGirl.define do

  #
  # right now, neither is_public nor is_trash exists in Tag
  #

  factory :tag do
    name 'Tag name'
    is_trash false
    is_public true
    after(:build) do |r|
      r.site = Site.first
    end
  end

  factory :tag1, :parent => :tag do
    name 'Tag 1'
  end

  factory :tag2, :parent => :tag do
    name 'Tag 2'
  end

  factory :tag_technology, :parent => :tag do
    name 'technology'
    name_seo 'technology'
  end
  
  factory :tag_1, :parent => :tag do
    name 'Tag-1'
  end
  factory :tag_2, :parent => :tag do
    name 'Tag-2'
  end
  factory :tag_3, :parent => :tag do
    name 'Tag-3'
  end

end


Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
ish_lib-0.0.8 spec/factories/tag.rb
ish_lib_engine-0.0.5 spec/factories/tag.rb
ish_lib_engine-0.0.3 spec/factories/tag.rb
ish_lib_engine-0.0.2 spec/factories/tag.rb
ish_lib_manager-0.0.1 test/dummy/spec/factories/tag.rb
ish_lib_engine-0.0.1 spec/factories/tag.rb
ish_lib-0.0.3 spec/factories/tag.rb