Sha256: 53147a4174cc7c8d36edeeee2a4bfa32e9b16ae5d63b87e35548eb8c1e7b097e
Contents?: true
Size: 607 Bytes
Versions: 7
Compression:
Stored size: 607 Bytes
Contents
FactoryGirl.define do factory :mno_enterprise_impac_alert, :class => 'Impac::Alert' do factory :impac_alert, class: MnoEnterprise::Impac::Alert do sequence(:id) { |n| n } # Mno-hub is sending back a impac_kpi_id, and with Her, the factory objects aren't working so well... # kpi { build(:impac_kpi).attributes } impac_kpi_id 1 service "inapp" title "Test Alert" recipients [{id: 1, email: 'test@maestrano.com'}] # Properly build the resource with Her initialize_with { new(attributes).tap { |e| e.clear_attribute_changes! } } end end end
Version data entries
7 entries across 7 versions & 1 rubygems