Change summary
test/test_buy_account_credit_form.rb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Detailed changes
@@ -6,13 +6,13 @@ require "customer"
class BuyAccountCreditFormTest < Minitest::Test
def setup
- @customer = Customer.new(
+ @customer = Minitest::Mock.new(Customer.new(
1,
plan_name: "test_usd",
balance: BigDecimal.new("12.1234")
- )
- @customer.instance_variable_set(
- :@payment_methods,
+ ))
+ @customer.expect(
+ :payment_methods,
EMPromise.resolve(PaymentMethods.new([
OpenStruct.new(card_type: "Test", last_4: "1234")
]))