Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit b7c56e2

Browse files
committed
Test fixes
1 parent 764164c commit b7c56e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/controllers/transactions_controller_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ class TransactionsControllerTest < ActionDispatch::IntegrationTest
162162
income_money: Money.new(0, "USD")
163163
)
164164

165-
expected_filters = { "start_date" => 30.days.ago.to_date }
166-
Transaction::Search.expects(:new).with(family, filters: expected_filters).returns(search)
165+
Transaction::Search.expects(:new).with(family, filters: {}).returns(search)
167166
search.expects(:totals).once.returns(totals)
168167

169168
get transactions_url

test/system/transactions_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class TransactionsTest < ApplicationSystemTestCase
3434

3535
within "form#transactions-search" do
3636
fill_in "Search transactions ...", with: @transaction.name
37+
find("#q_search").send_keys(:tab) # Trigger blur to submit form
3738
end
3839

3940
assert_selector "#" + dom_id(@transaction), count: 1

0 commit comments

Comments
 (0)