Sha256: 4cc8ede892973d911430694ca30eef2d0cbbbb0c229ffcf8705abe24d8471413
Contents?: true
Size: 1006 Bytes
Versions: 6
Compression:
Stored size: 1006 Bytes
Contents
module Pageflow FactoryBot.define do factory :revision, :class => Revision do entry trait :frozen do frozen_at { 1.day.ago } end trait :published do frozen creator { create(:user) } published_at { 1.day.ago } end trait :depublished do published published_until { 1.day.ago } end trait :user_snapshot do frozen snapshot_type { 'user' } end trait :auto_snapshot do frozen snapshot_type { 'auto' } end trait :with_home_button do home_button_enabled { true } home_url { 'http://example.com' } end trait :without_home_button do home_button_enabled { false } home_url { 'http://example.com' } end trait :with_overview_button do overview_button_enabled { true } end trait :without_overview_button do overview_button_enabled { false } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems