diff --git a/test/controllers/transactions_controller_test.rb b/test/controllers/transactions_controller_test.rb index 2500615c..c2cc94b7 100644 --- a/test/controllers/transactions_controller_test.rb +++ b/test/controllers/transactions_controller_test.rb @@ -162,8 +162,7 @@ end income_money: Money.new(0, "USD") ) - expected_filters = { "start_date" => 30.days.ago.to_date } - Transaction::Search.expects(:new).with(family, filters: expected_filters).returns(search) + Transaction::Search.expects(:new).with(family, filters: {}).returns(search) search.expects(:totals).once.returns(totals) get transactions_url diff --git a/test/system/transactions_test.rb b/test/system/transactions_test.rb index be1f9b54..632f6076 100644 --- a/test/system/transactions_test.rb +++ b/test/system/transactions_test.rb @@ -34,6 +34,7 @@ class TransactionsTest < ApplicationSystemTestCase within "form#transactions-search" do fill_in "Search transactions ...", with: @transaction.name + find("#q_search").send_keys(:tab) # Trigger blur to submit form end assert_selector "#" + dom_id(@transaction), count: 1