Sha256: 097335e1984104191b2c6cabff84acce14abfcf02ba28b6019a280f6f04349d2

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

FactoryGirl.define do

  factory :message, class: Ddr::Alerts::Message do
    
    trait :active do
      active true
    end

    trait :inactive do
      active false
    end

    trait :ddr do
      contexts { [ FactoryGirl.create(:message_context, :ddr) ] }
    end

    trait :repository do
      contexts { [ FactoryGirl.create(:message_context, :repository) ] }
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ddr-alerts-0.3.0 spec/factories/message_factories.rb
ddr-alerts-0.2.0 spec/factories/message_factories.rb
ddr-alerts-0.1.1 spec/factories/message_factories.rb
ddr-alerts-0.1.0 spec/factories/message_factories.rb