Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ee1dc83d
Commit
ee1dc83d
authored
Mar 18, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `context` instead of `describe` in view spec
parent
f89e1005
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/views/admin/users/_user.html.haml_spec.rb
spec/views/admin/users/_user.html.haml_spec.rb
+6
-6
No files found.
spec/views/admin/users/_user.html.haml_spec.rb
View file @
ee1dc83d
...
...
@@ -2,13 +2,13 @@
require
'spec_helper'
describe
'admin/users/_user'
do
describe
'admin/users/_user
.html.haml
'
do
before
do
allow
(
view
).
to
receive
(
:user
).
and_return
(
user
)
end
describe
'internal users'
do
describe
'when showing a `Ghost User`'
do
context
'internal users'
do
context
'when showing a `Ghost User`'
do
let
(
:user
)
{
create
(
:user
,
ghost:
true
)
}
it
'does not render action buttons'
do
...
...
@@ -18,8 +18,8 @@ describe 'admin/users/_user' do
end
end
describe
'when showing a `Bot User`'
do
let
(
:user
)
{
create
(
:user
,
bot
_type: :alert_bot
)
}
context
'when showing a `Bot User`'
do
let
(
:user
)
{
create
(
:user
,
user
_type: :alert_bot
)
}
it
'does not render action buttons'
do
render
...
...
@@ -29,7 +29,7 @@ describe 'admin/users/_user' do
end
end
describe
'when showing an external user'
do
context
'when showing an external user'
do
let
(
:user
)
{
create
(
:user
)
}
it
'renders action buttons'
do
...
...
Write
Preview
Markdown
is supported
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