Initial commit
This commit is contained in:
10
spec/factories/triggers.rb
Normal file
10
spec/factories/triggers.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :trigger do
|
||||
order { create(:order_ask, :with_deposit_liability, :btcusd)}
|
||||
order_type { Trigger::TYPES.keys.sample }
|
||||
value { 1.1.to_d }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user