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
95771320
Commit
95771320
authored
Oct 25, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove cop tags
parent
484d9c56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
ee/spec/helpers/projects/on_demand_scans_helper_spec.rb
ee/spec/helpers/projects/on_demand_scans_helper_spec.rb
+0
-2
No files found.
ee/spec/helpers/projects/on_demand_scans_helper_spec.rb
View file @
95771320
...
@@ -27,12 +27,10 @@ RSpec.describe Projects::OnDemandScansHelper do
...
@@ -27,12 +27,10 @@ RSpec.describe Projects::OnDemandScansHelper do
describe
'#on_demand_scans_form_data'
do
describe
'#on_demand_scans_form_data'
do
let_it_be
(
:timezones
)
{
[{
identifier:
"Europe/Paris"
}]
}
let_it_be
(
:timezones
)
{
[{
identifier:
"Europe/Paris"
}]
}
# rubocop: disable CodeReuse/ActiveRecord
before
do
before
do
allow
(
project
).
to
receive
(
:default_branch
).
and_return
(
"default-branch"
)
allow
(
project
).
to
receive
(
:default_branch
).
and_return
(
"default-branch"
)
allow
(
helper
).
to
receive
(
:timezone_data
).
with
(
format: :full
).
and_return
(
timezones
)
allow
(
helper
).
to
receive
(
:timezone_data
).
with
(
format: :full
).
and_return
(
timezones
)
end
end
# rubocop: enable CodeReuse/ActiveRecord
it
'returns proper data'
do
it
'returns proper data'
do
expect
(
helper
.
on_demand_scans_form_data
(
project
)).
to
match
(
expect
(
helper
.
on_demand_scans_form_data
(
project
)).
to
match
(
...
...
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