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
605796d6
Commit
605796d6
authored
Sep 01, 2021
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve RuboCop offenses in issues form feature specs
parent
6071fca1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
spec/features/issues/form_spec.rb
spec/features/issues/form_spec.rb
+8
-7
No files found.
spec/features/issues/form_spec.rb
View file @
605796d6
...
...
@@ -4,11 +4,10 @@ require 'spec_helper'
RSpec
.
describe
'New/edit issue'
,
:js
do
include
ActionView
::
Helpers
::
JavaScriptHelper
include
FormHelper
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
create
(
:user
)}
let_it_be
(
:user2
)
{
create
(
:user
)}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user2
)
{
create
(
:user
)
}
let_it_be
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let_it_be
(
:label
)
{
create
(
:label
,
project:
project
)
}
let_it_be
(
:label2
)
{
create
(
:label
,
project:
project
)
}
...
...
@@ -22,7 +21,7 @@ RSpec.describe 'New/edit issue', :js do
sign_in
(
user
)
end
context
'new issue'
do
describe
'new issue'
do
before
do
visit
new_project_issue_path
(
project
)
end
...
...
@@ -257,7 +256,9 @@ RSpec.describe 'New/edit issue', :js do
end
describe
'milestone'
do
let!
(
:milestone
)
{
create
(
:milestone
,
title:
'"><img src=x onerror=alert(document.domain)>'
,
project:
project
)
}
let!
(
:milestone
)
do
create
(
:milestone
,
title:
'"><img src=x onerror=alert(document.domain)>'
,
project:
project
)
end
it
'escapes milestone'
do
click_button
'Milestone'
...
...
@@ -274,7 +275,7 @@ RSpec.describe 'New/edit issue', :js do
end
end
context
'edit issue'
do
describe
'edit issue'
do
before
do
visit
edit_project_issue_path
(
project
,
issue
)
end
...
...
@@ -329,7 +330,7 @@ RSpec.describe 'New/edit issue', :js do
end
end
context
'inline edit'
do
describe
'inline edit'
do
before
do
visit
project_issue_path
(
project
,
issue
)
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