Sha256: d5c6b33d38c1da55cf1e1acc817389d8eb6a2a6d66d2ad5bfe7f1a0e7aafe12f

Contents?: true

Size: 429 Bytes

Versions: 17

Compression:

Stored size: 429 Bytes

Contents

FactoryGirl.define do

  factory :tenant, class: MnoEnterprise::Tenant do
    last_portfolio_amount Money.new(65644,'AUD')
    last_customers_invoicing_amount Money.new(687994,'AUD')
    last_customers_outstanding_amount Money.new(178986,'AUD')
    last_commission_amount Money.new(412345,'AUD')

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mno-enterprise-core-2.0.9 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.8 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.7 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.6 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.5 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-3.1.1 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-3.0.4 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.4 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-3.1.0 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-3.0.3 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.3 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-3.0.2 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.2 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-3.0.1 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.1 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-3.0.0 lib/mno_enterprise/testing_support/factories/tenant.rb
mno-enterprise-core-2.0.0 lib/mno_enterprise/testing_support/factories/tenant.rb