Initial commit
This commit is contained in:
11
spec/factories/transaction.rb
Normal file
11
spec/factories/transaction.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :transaction do
|
||||
currency { Currency.all.sample }
|
||||
txid { Faker::Lorem.characters(64) }
|
||||
from_address { Faker::Blockchain::Bitcoin.address }
|
||||
to_address { Faker::Blockchain::Bitcoin.address }
|
||||
amount { Kernel.rand(100..10_000).to_d }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user