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
6384816f
Commit
6384816f
authored
Nov 24, 2020
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs to pass keyword arguments correctly
parent
1535f1ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/helpers/application_helper_spec.rb
spec/helpers/application_helper_spec.rb
+1
-1
spec/lib/gitlab/cleanup/project_uploads_spec.rb
spec/lib/gitlab/cleanup/project_uploads_spec.rb
+5
-5
No files found.
spec/helpers/application_helper_spec.rb
View file @
6384816f
...
...
@@ -116,7 +116,7 @@ RSpec.describe ApplicationHelper do
Time
.
use_zone
(
'UTC'
)
{
example
.
run
}
end
def
element
(
*
arguments
)
def
element
(
*
*
arguments
)
@time
=
Time
.
zone
.
parse
(
'2015-07-02 08:23'
)
element
=
helper
.
time_ago_with_tooltip
(
@time
,
**
arguments
)
...
...
spec/lib/gitlab/cleanup/project_uploads_spec.rb
View file @
6384816f
...
...
@@ -15,7 +15,7 @@ RSpec.describe Gitlab::Cleanup::ProjectUploads do
describe
'#run!'
do
shared_examples_for
'moves the file'
do
shared_examples_for
'a real run'
do
let
(
:args
)
{
[
dry_run:
false
]
}
let
(
:args
)
{
{
dry_run:
false
}
}
it
'moves the file to its proper location'
do
subject
.
run!
(
**
args
)
...
...
@@ -49,25 +49,25 @@ RSpec.describe Gitlab::Cleanup::ProjectUploads do
end
context
'when dry_run is false'
do
let
(
:args
)
{
[
dry_run:
false
]
}
let
(
:args
)
{
{
dry_run:
false
}
}
it_behaves_like
'a real run'
end
context
'when dry_run is nil'
do
let
(
:args
)
{
[
dry_run:
nil
]
}
let
(
:args
)
{
{
dry_run:
nil
}
}
it_behaves_like
'a real run'
end
context
'when dry_run is true'
do
let
(
:args
)
{
[
dry_run:
true
]
}
let
(
:args
)
{
{
dry_run:
true
}
}
it_behaves_like
'a dry run'
end
context
'with dry_run not specified'
do
let
(
:args
)
{
[]
}
let
(
:args
)
{
{}
}
it_behaves_like
'a dry run'
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