mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Test fixes
This commit is contained in:
@@ -162,8 +162,7 @@ end
|
|||||||
income_money: Money.new(0, "USD")
|
income_money: Money.new(0, "USD")
|
||||||
)
|
)
|
||||||
|
|
||||||
expected_filters = { "start_date" => 30.days.ago.to_date }
|
Transaction::Search.expects(:new).with(family, filters: {}).returns(search)
|
||||||
Transaction::Search.expects(:new).with(family, filters: expected_filters).returns(search)
|
|
||||||
search.expects(:totals).once.returns(totals)
|
search.expects(:totals).once.returns(totals)
|
||||||
|
|
||||||
get transactions_url
|
get transactions_url
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class TransactionsTest < ApplicationSystemTestCase
|
|||||||
|
|
||||||
within "form#transactions-search" do
|
within "form#transactions-search" do
|
||||||
fill_in "Search transactions ...", with: @transaction.name
|
fill_in "Search transactions ...", with: @transaction.name
|
||||||
|
find("#q_search").send_keys(:tab) # Trigger blur to submit form
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_selector "#" + dom_id(@transaction), count: 1
|
assert_selector "#" + dom_id(@transaction), count: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user