Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
31294853
Commit
31294853
authored
May 11, 2017
by
Chrysanthi Lagodimou
Committed by
Tuğçe Nur Taş
May 12, 2017
Browse files
tests added and fixed
parent
dc17fb00
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/clients/show.html.slim
View file @
31294853
...
...
@@ -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
...
...
test/system/socialworker_test.rb
View file @
31294853
...
...
@@ -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
'socialworker
s
has no client destroy link'
do
visit
clients_path
assert_not
page
.
has_link?
'Delete'
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment