Skip to content

Commit da03021

Browse files
kevinpjonesclaude
andcommitted
Fix BankAccount unit tests broken by BankAccountVerify validation
BankAccountVerify.new now requires exactly one of amounts or descriptor_code. Updated the two Verify unit tests that were calling BankAccountVerify.new with no arguments. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f6e5a0c commit da03021

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

__tests__/Api/BankAccount.unit.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
it "handles errors returned by the api" do
216216
bankAccountApiMock = double("ApiClient")
217217
bankAccountApi = BankAccountsApi.new(bankAccountApiMock)
218-
bankAccountVerify = BankAccountVerify.new
218+
bankAccountVerify = BankAccountVerify.new(amounts: [11, 35])
219219

220220
allow(bankAccountApi).to receive(:verify).and_raise("exception thrown in verification test")
221221
begin
@@ -228,7 +228,7 @@
228228
it "verifies a bank account" do
229229
bankAccountApiMock = double("ApiClient")
230230
bankAccountApi = BankAccountsApi.new(bankAccountApiMock)
231-
bankAccountVerify = BankAccountVerify.new
231+
bankAccountVerify = BankAccountVerify.new(amounts: [11, 35])
232232
fakeBankAccount = BankAccount.new
233233
fakeBankAccount.verified = true
234234
fakeBankAccount.id = "bank_fakeId"

0 commit comments

Comments
 (0)