diff --git a/exercises/practice/bank-account/bank_account_test.rb b/exercises/practice/bank-account/bank_account_test.rb index 6eff9d4350..edc44b4559 100644 --- a/exercises/practice/bank-account/bank_account_test.rb +++ b/exercises/practice/bank-account/bank_account_test.rb @@ -14,7 +14,7 @@ def test_single_deposit bank_account = BankAccount.new bank_account.open bank_account.deposit(100) - assert_equal bank_account.balance, 100 + assert_equal 100, bank_account.balance end def test_multiple_deposits @@ -23,7 +23,7 @@ def test_multiple_deposits bank_account.open bank_account.deposit(100) bank_account.deposit(50) - assert_equal bank_account.balance, 150 + assert_equal 150, bank_account.balance end def test_withdraw_once @@ -32,7 +32,7 @@ def test_withdraw_once bank_account.open bank_account.deposit(100) bank_account.withdraw(75) - assert_equal bank_account.balance, 25 + assert_equal 25, bank_account.balance end def test_withdraw_twice @@ -42,7 +42,7 @@ def test_withdraw_twice bank_account.deposit(100) bank_account.withdraw(80) bank_account.withdraw(20) - assert_equal bank_account.balance, 0 + assert_equal 0, bank_account.balance end def test_can_do_multiple_operations_sequentially @@ -54,7 +54,7 @@ def test_can_do_multiple_operations_sequentially bank_account.withdraw(200) bank_account.deposit(60) bank_account.withdraw(50) - assert_equal bank_account.balance, 20 + assert_equal 20, bank_account.balance end def test_cannot_check_balance_of_closed_account @@ -107,7 +107,7 @@ def test_reopened_account_does_not_retain_balance bank_account.deposit(50) bank_account.close bank_account.open - assert_equal bank_account.balance, 0 + assert_equal 0, bank_account.balance end def test_cannot_withdraw_more_than_deposited