Skip to content

Commit

Permalink
Merge pull request #198 from halorrr/fix-transaction-group-test
Browse files Browse the repository at this point in the history
fix the transaction_group test
  • Loading branch information
mmenanno committed Feb 1, 2024
2 parents 5b60030 + 7bf2b04 commit a2a8e12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/cassettes/transactions/transaction_group_success.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/lunchmoney/calls/transactions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TransactionsTest < ActiveSupport::TestCase
test "transaction_group returns a Transaction objects on success response" do
with_real_ci_connections do
VCR.use_cassette("transactions/transaction_group_success") do
api_call = LunchMoney::Calls::Transactions.new.transaction(894063595)
api_call = LunchMoney::Calls::Transactions.new.transaction_group(894063595)

assert_kind_of(LunchMoney::Objects::Transaction, api_call)
end
Expand All @@ -66,7 +66,7 @@ class TransactionsTest < ActiveSupport::TestCase
response = mock_faraday_lunchmoney_error_response
LunchMoney::Calls::Transactions.any_instance.stubs(:get).returns(response)

api_call = LunchMoney::Calls::Transactions.new.transaction(893631800)
api_call = LunchMoney::Calls::Transactions.new.transaction_group(893631800)

assert_kind_of(LunchMoney::Errors, api_call)
end
Expand Down

0 comments on commit a2a8e12

Please sign in to comment.