From 4b7699ac07366991ff69351464cb2dd250cbcc7c Mon Sep 17 00:00:00 2001 From: halorrr Date: Tue, 30 Jan 2024 14:20:00 -0500 Subject: [PATCH] don't use ci remote call on insert_transaction --- .../transactions/transaction_calls_test.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/lunchmoney/transactions/transaction_calls_test.rb b/test/lunchmoney/transactions/transaction_calls_test.rb index 21558d7..9c02744 100644 --- a/test/lunchmoney/transactions/transaction_calls_test.rb +++ b/test/lunchmoney/transactions/transaction_calls_test.rb @@ -73,16 +73,14 @@ class TransactionCallsTest < ActiveSupport::TestCase end test "insert_transactions returns a hash containing an array of ids on success response" do - with_real_ci_connections do - VCR.use_cassette("transactions/insert_transactions_success") do - api_call = LunchMoney::TransactionCalls.new.insert_transactions([random_update_transaction]) - ids = T.cast(api_call, T::Hash[Symbol, T::Array[Integer]])[:ids] + VCR.use_cassette("transactions/insert_transactions_success") do + api_call = LunchMoney::TransactionCalls.new.insert_transactions([random_update_transaction]) + ids = T.cast(api_call, T::Hash[Symbol, T::Array[Integer]])[:ids] - refute_nil(ids) + refute_nil(ids) - T.unsafe(ids).each do |id| - assert_kind_of(Integer, id) - end + T.unsafe(ids).each do |id| + assert_kind_of(Integer, id) end end end