Commit 31294853 authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou Committed by Tuğçe Nur Taş
Browse files

tests added and fixed

parent dc17fb00
......@@ -82,11 +82,10 @@
td= t('registered_by')
td= @client.user.email
tr
td
- if policy(Client).destroy?
= t_attr(:comments)
td= @client.comments
- if policy(Client).destroy?
tr
td= t_attr(:comments)
td= @client.comments
.row
.col-xs-12
......
......@@ -7,9 +7,7 @@ class SocialworkerTest < ApplicationSystemTestCase
end
test 'when logged in socialworker cannot see create user link' do
login_as @socialworker
visit root_path
assert_not page.has_link? 'Create user'
end
......@@ -38,7 +36,7 @@ class SocialworkerTest < ApplicationSystemTestCase
end
end
test 'cannot see comment field in client creation or show' do
test 'cannot see comment field' do
visit new_client_path
assert_not page.has_field? 'Comments'
visit client_path(@socialworker.clients.first)
......@@ -56,7 +54,7 @@ class SocialworkerTest < ApplicationSystemTestCase
end
end
test 'socialworker has no client destroy link' do
test 'socialworkers has no client destroy link' do
visit clients_path
assert_not page.has_link? 'Delete'
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