test(payouts): add matching expectaions to db timestamp values
This commit is contained in:
parent
5fe98ab464
commit
096a6a27a1
1 changed files with 8 additions and 8 deletions
|
@ -113,8 +113,8 @@ describe InsertPayout do
|
||||||
user_ip: user_ip,
|
user_ip: user_ip,
|
||||||
ach_fee: 0,
|
ach_fee: 0,
|
||||||
bank_name: bank_name,
|
bank_name: bank_name,
|
||||||
updated_at: Time.now,
|
updated_at: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
||||||
created_at: Time.now
|
created_at: Time.now.strftime('%Y-%m-%d %H:%M:%S')
|
||||||
}.with_indifferent_access
|
}.with_indifferent_access
|
||||||
expect(Payout.count).to eq 1
|
expect(Payout.count).to eq 1
|
||||||
resulted_payout = Payout.first
|
resulted_payout = Payout.first
|
||||||
|
@ -167,8 +167,8 @@ describe InsertPayout do
|
||||||
user_ip: user_ip,
|
user_ip: user_ip,
|
||||||
ach_fee: 0,
|
ach_fee: 0,
|
||||||
bank_name: bank_name,
|
bank_name: bank_name,
|
||||||
updated_at: Time.now,
|
updated_at: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
||||||
created_at: Time.now
|
created_at: Time.now.strftime('%Y-%m-%d %H:%M:%S')
|
||||||
}.with_indifferent_access
|
}.with_indifferent_access
|
||||||
|
|
||||||
expect(Payout.count).to eq 1
|
expect(Payout.count).to eq 1
|
||||||
|
@ -242,8 +242,8 @@ describe InsertPayout do
|
||||||
user_ip: user_ip,
|
user_ip: user_ip,
|
||||||
ach_fee: 0,
|
ach_fee: 0,
|
||||||
bank_name: bank_name,
|
bank_name: bank_name,
|
||||||
updated_at: Time.now,
|
updated_at: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
||||||
created_at: Time.now
|
created_at: Time.now.strftime('%Y-%m-%d %H:%M:%S')
|
||||||
}.with_indifferent_access
|
}.with_indifferent_access
|
||||||
expect(Payout.count).to eq 1
|
expect(Payout.count).to eq 1
|
||||||
resulted_payout = Payout.first
|
resulted_payout = Payout.first
|
||||||
|
@ -292,8 +292,8 @@ describe InsertPayout do
|
||||||
user_ip: user_ip,
|
user_ip: user_ip,
|
||||||
ach_fee: 0,
|
ach_fee: 0,
|
||||||
bank_name: bank_name,
|
bank_name: bank_name,
|
||||||
updated_at: Time.now,
|
updated_at: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
||||||
created_at: Time.now
|
created_at: Time.now.strftime('%Y-%m-%d %H:%M:%S')
|
||||||
}.with_indifferent_access
|
}.with_indifferent_access
|
||||||
|
|
||||||
expect(Payout.count).to eq 1
|
expect(Payout.count).to eq 1
|
||||||
|
|
Loading…
Reference in a new issue