Sha256: 1186a3aa4b5aae0ebe14f2b37d7010088d9475f68a672d16c20ba8e6bcec82b7

Contents?: true

Size: 555 Bytes

Versions: 5

Compression:

Stored size: 555 Bytes

Contents

FactoryBot.define do
  factory :rate_change_request, class: 'Mks::Rate::RateChangeRequest' do
    reference_number { FFaker::Name.unique.name }
    authorized_by { FFaker::Name.name }
    effective_on { Date.today }
    authorized_on { Date.today }
    rates {
      [{ 'chargeable_service_id': 1, 'base_rate': 100, 'utilization_rate': 50 },
       { 'chargeable_service_id': 2, 'base_rate': 100, 'utilization_rate': 25 }]
    }
    status { 'SUBMITTED' }
    association :created_by, factory: :user
    association :approved_by, factory: :user
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mks_rate-1.0.5 spec/factories/rate_change_requests.rb
mks_rate-1.0.4 spec/factories/rate_change_requests.rb
mks_rate-1.0.3 spec/factories/rate_change_requests.rb
mks_rate-1.0.2 spec/factories/rate_change_requests.rb
mks_rate-1.0.1 spec/factories/rate_change_requests.rb