Commit 0aa36790 authored by Tugce Nur Tas's avatar Tugce Nur Tas Committed by Tuğçe Nur Taş
Browse files

add system test where superadmin can delete client

parent 3e7d2f5c
......@@ -57,4 +57,12 @@ class ClientsTest < ApplicationSystemTestCase
assert page.has_text? "can't be blank"
end
end
test 'superadmin can delete client' do
create :client
visit clients_path
click_link 'Delete'
assert page.has_text? 'Client was successfully deleted.'
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment