Fix leaking test

This commit is contained in:
Maciej Szlosarczyk 2018-04-19 10:44:40 +03:00
parent 1cca930744
commit f6b1db2cce
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
12 changed files with 134 additions and 31 deletions

View file

@ -1,7 +1,7 @@
module Payments
class BankLink < Base
# TODO: Remove magic numbers, convert certain fields to proper constants
# TODO: Remove hashrockets
# DONE: Remove hashrockets
def form_fields
@fields ||= hash = {}
hash["VK_SERVICE"] = "1012"
@ -36,6 +36,8 @@ module Payments
private
SUCCESS_FIELDS =
def validate_success
pars = %w(VK_SERVICE VK_VERSION VK_SND_ID VK_REC_ID VK_STAMP VK_T_NO VK_AMOUNT VK_CURR
VK_REC_ACC VK_REC_NAME VK_SND_ACC VK_SND_NAME VK_REF VK_MSG VK_T_DATETIME).freeze