Sha256: 953ae70f63a0dfda0aed06a81e0fdd23ba9ea3f6483b6a3f44cb84440875e2e6

Contents?: true

Size: 326 Bytes

Versions: 9

Compression:

Stored size: 326 Bytes

Contents

FactoryGirl.define do
  factory :currency, parent: :lookup, class: 'Logistics::Core::Currency' do
    type 'Logistics::Core::Currency'
    trait :with_rates do
      after(:create) do |cur|
        cur.currency_rates = [create(:currency_rate, currency: cur), create(:currency_rate, currency: cur)]
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 spec/factories/currencies.rb
logistics_core-21.11.1 spec/factories/currencies.rb
logistics_core-21.08.1 spec/factories/currencies.rb
logistics_core-21.03.1 spec/factories/currencies.rb
logistics_core-20.10.3 spec/factories/currencies.rb
logistics_core-20.10.2 spec/factories/currencies.rb
logistics_core-20.10.1 spec/factories/currencies.rb
logistics_core-20.9.1 spec/factories/currencies.rb
logistics_core-20.8.1 spec/factories/currencies.rb