Sha256: 75039e7e5996f68f08e38a3ac777e69617bf61fb771a9101b1e58c76df29d147

Contents?: true

Size: 444 Bytes

Versions: 7

Compression:

Stored size: 444 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 "finance/revenue"
      element_watched "evolution"

      # 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

Version Path
mno-enterprise-core-3.4.0 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.2.1 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/testing_support/factories/impac/kpis.rb
mno-enterprise-core-3.2.0 lib/mno_enterprise/testing_support/factories/impac/kpis.rb