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
14c6d33a
Commit
14c6d33a
authored
May 29, 2020
by
Coung Ngo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update _button.html.haml_spec.rb test
Update test as a result of reviewer comment.
parent
4b2ba6cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
spec/views/projects/issues/import_csv/_button.html.haml_spec.rb
...iews/projects/issues/import_csv/_button.html.haml_spec.rb
+8
-3
No files found.
spec/views/projects/issues/import_csv/_button.html.haml_spec.rb
View file @
14c6d33a
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
describe
'projects/issues/import_csv/_button'
do
include
Devise
::
Test
::
ControllerHelpers
context
'when the user
is not an admin
'
do
context
'when the user
does not have edit permissions
'
do
before
do
render
end
...
...
@@ -19,10 +19,15 @@ describe 'projects/issues/import_csv/_button' do
end
end
context
'when the user is an admin'
do
context
'when the user has edit permissions'
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:current_user
)
{
create
(
:user
,
maintainer_projects:
[
project
])
}
before
do
allow
(
view
).
to
receive
(
:can?
).
and_return
(
true
)
allow
(
view
).
to
receive
(
:project_import_jira_path
).
and_return
(
'import/jira'
)
allow
(
view
).
to
receive
(
:current_user
).
and_return
(
current_user
)
assign
(
:project
,
project
)
render
end
...
...
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