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
d243fc6a
Commit
d243fc6a
authored
Aug 12, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Persist few records in tests
parent
b0035042
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
ee/spec/views/projects/dast_site_profiles/edit.html.haml_spec.rb
.../views/projects/dast_site_profiles/edit.html.haml_spec.rb
+10
-7
No files found.
ee/spec/views/projects/dast_site_profiles/edit.html.haml_spec.rb
View file @
d243fc6a
...
...
@@ -3,10 +3,13 @@
require
'spec_helper'
RSpec
.
describe
"projects/dast_site_profiles/edit"
,
type: :view
do
let_it_be
(
:site_profile
)
{
create
(
:dast_site_profile
)
}
let_it_be
(
:site_profile_gid
)
{
::
URI
::
GID
.
parse
(
"gid://gitlab/DastSiteProfile/
#{
site_profile
.
id
}
"
)
}
before
do
@project
=
create
(
:
project
)
@site_profile
=
create
(
:dast_
site_profile
)
@site_profile_gid
=
::
URI
::
GID
.
parse
(
"gid://gitlab/DastSiteProfile/
#{
@site_profile
.
id
}
"
)
assign
(
:project
,
site_profile
.
project
)
assign
(
:site_profile
,
site_profile
)
assign
(
:site_profile_gid
,
site_profile_gid
)
render
end
...
...
@@ -15,7 +18,7 @@ RSpec.describe "projects/dast_site_profiles/edit", type: :view do
end
it
'passes project\'s full path'
do
expect
(
rendered
).
to
include
@
project
.
path_with_namespace
expect
(
rendered
).
to
include
site_profile
.
project
.
path_with_namespace
end
it
'passes DAST profiles library URL'
do
...
...
@@ -23,8 +26,8 @@ RSpec.describe "projects/dast_site_profiles/edit", type: :view do
end
it
'passes DAST site profile\'s data'
do
expect
(
rendered
).
to
include
@
site_profile_gid
.
to_s
expect
(
rendered
).
to
include
@
site_profile
.
name
expect
(
rendered
).
to
include
@
site_profile
.
dast_site
.
url
expect
(
rendered
).
to
include
site_profile_gid
.
to_s
expect
(
rendered
).
to
include
site_profile
.
name
expect
(
rendered
).
to
include
site_profile
.
dast_site
.
url
end
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