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
704631f5
Commit
704631f5
authored
Sep 10, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use eq instead of match
parent
4c795c12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/spec/helpers/projects/on_demand_scans_helper_spec.rb
ee/spec/helpers/projects/on_demand_scans_helper_spec.rb
+1
-1
ee/spec/helpers/projects/security/dast_profiles_helper_spec.rb
...ec/helpers/projects/security/dast_profiles_helper_spec.rb
+1
-1
No files found.
ee/spec/helpers/projects/on_demand_scans_helper_spec.rb
View file @
704631f5
...
...
@@ -8,7 +8,7 @@ RSpec.describe Projects::OnDemandScansHelper do
it
'returns proper data'
do
expect
(
helper
.
on_demand_scans_data
(
project
)).
to
match
(
'help-page-path'
=>
help_page_path
(
'user/application_security/dast/index'
,
anchor:
'on-demand-scans'
)
,
'help-page-path'
=>
"/help/user/application_security/dast/index#on-demand-scans"
,
'empty-state-svg-path'
=>
match_asset_path
(
'/assets/illustrations/empty-state/ondemand-scan-empty.svg'
),
'default-branch'
=>
project
.
default_branch
,
'project-path'
=>
project
.
path_with_namespace
,
...
...
ee/spec/helpers/projects/security/dast_profiles_helper_spec.rb
View file @
704631f5
...
...
@@ -7,7 +7,7 @@ RSpec.describe Projects::Security::DastProfilesHelper do
let
(
:project
)
{
create
(
:project
)
}
it
'returns proper data'
do
expect
(
helper
.
dast_profiles_list_data
(
project
)).
to
match
(
expect
(
helper
.
dast_profiles_list_data
(
project
)).
to
eq
(
{
'new_dast_saved_scan_path'
=>
new_project_on_demand_scan_path
(
project
),
'new_dast_site_profile_path'
=>
new_project_security_configuration_dast_scans_dast_site_profile_path
(
project
),
...
...
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