Sha256: 5267a602e7cc5d71f3a2ccecb6282fe59ede2bfe2f76ceb0b6158425941d4d5d

Contents?: true

Size: 536 Bytes

Versions: 11

Compression:

Stored size: 536 Bytes

Contents

FactoryGirl.define do
    
  factory :mno_enterprise_impac_kpi, :class => 'Impac::Kpi' do
    factory :impac_kpi, class: MnoEnterprise::Impac::Kpi do
      
      sequence(:id) { |n| n }
      dashboard { build(:impac_dashboard).attributes }
      endpoint "an/endpoint"
      element_watched "a_watchable"
      source "impac"
      targets {}
      settings {}
      extra_params {}
      
      # Properly build the resource with Her
      initialize_with { new(attributes).tap { |e| e.clear_attribute_changes! } }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mno-enterprise-core-3.1.4 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.0.7 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-2.0.9 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.1.3 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.0.6 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-2.0.8 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.1.2 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.0.5 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-2.0.7 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-2.0.6 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-2.0.5 lib/mno_enterprise/testing_support/factories/impac/kpis.rb