parent
10211a51ef
commit
a13f70ea1a
5 changed files with 100 additions and 20 deletions
|
@ -47,7 +47,7 @@ class ExpensesTest < ApplicationSystemTestCase
|
|||
|
||||
test "should destroy Expense" do
|
||||
visit expense_url(@expense)
|
||||
click_on "Delete expense", match: :first
|
||||
accept_prompt { click_on "Delete expense", match: :first }
|
||||
|
||||
assert_text "Expense was successfully destroyed"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue