Sha256: 78298939f7789109fad3eff5fcad8475c3d59c10003e45f406d9455a5ff9183b

Contents?: true

Size: 496 Bytes

Versions: 30

Compression:

Stored size: 496 Bytes

Contents

FactoryGirl.define do
    
  factory :mno_enterprise_impac_dashboard, :class => 'Impac::Dashboard' do
    factory :impac_dashboard, class: MnoEnterprise::Impac::Dashboard do
      sequence(:id) { |n| n }
      sequence(:name) { |n| "Random Dashboard #{n}" }

      # Problem with polymorphic association ?...
      # owner { build(:user).attributes }

      # Properly build the resource with Her
      initialize_with { new(attributes).tap { |e| e.clear_attribute_changes! } }
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.2.1 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.2.0 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.1.4 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.0.7 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-2.0.9 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.1.3 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.0.6 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-2.0.8 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.1.2 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.0.5 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-2.0.7 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-2.0.6 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-2.0.5 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.1.1 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
mno-enterprise-core-3.0.4 lib/mno_enterprise/testing_support/factories/impac/dashboards.rb