Sha256: bbcf824f73f918d41f1717e6e373b3f001afbbaa2b849ea617fe0bc3b874b94e
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :metatag, class: "Archangel::Metatag" do association(:metatagable, factory: :page) name { "description" } content { "This is the description of this Page" } trait :for_page do association(:metatagable, factory: :page) name { "description" } content { "This is the description of the Page" } end trait :for_site do association(:metatagable, factory: :site) name { "description" } content { "This is the description of the Site" } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.4.0 | lib/archangel/testing_support/factories/archangel_metatags.rb |
archangel-0.3.0 | lib/archangel/testing_support/factories/archangel_metatags.rb |