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
ac581bec
Commit
ac581bec
authored
Feb 05, 2021
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix keyword deprecation in spec factories
parent
16a9be62
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
spec/deprecation_toolkit_env.rb
spec/deprecation_toolkit_env.rb
+0
-1
spec/factories/design_management/design_at_version.rb
spec/factories/design_management/design_at_version.rb
+1
-1
spec/factories/diff_position.rb
spec/factories/diff_position.rb
+1
-1
spec/factories/usage_data.rb
spec/factories/usage_data.rb
+2
-2
No files found.
spec/deprecation_toolkit_env.rb
View file @
ac581bec
...
...
@@ -62,7 +62,6 @@ module DeprecationToolkitEnv
grape-1.5.1/lib/grape/validations/validators/coerce.rb
grape_logging-1.8.3/lib/grape_logging/middleware/request_logger.rb
activesupport-6.0.3.4/lib/active_support/cache.rb
factory_bot-6.1.0/lib/factory_bot/decorator.rb
batch-loader-1.4.0/lib/batch_loader/graphql.rb
carrierwave-1.3.1/lib/carrierwave/sanitized_file.rb
activerecord-6.0.3.4/lib/active_record/relation.rb
...
...
spec/factories/design_management/design_at_version.rb
View file @
ac581bec
...
...
@@ -17,7 +17,7 @@ FactoryBot.define do
attrs
[
:design
]
||=
association
(
:design
,
issue:
issue
)
attrs
[
:version
]
||=
association
(
:design_version
,
issue:
issue
)
new
(
attrs
)
new
(
**
attrs
)
end
end
end
spec/factories/diff_position.rb
View file @
ac581bec
...
...
@@ -24,7 +24,7 @@ FactoryBot.define do
head_sha
{
diff_refs
&
.
head_sha
}
start_sha
{
diff_refs
&
.
start_sha
}
initialize_with
{
new
(
attributes
)
}
initialize_with
{
new
(
**
attributes
)
}
trait
:moved
do
new_path
{
'path/to/new.file'
}
...
...
spec/factories/usage_data.rb
View file @
ac581bec
...
...
@@ -121,8 +121,8 @@ FactoryBot.define do
env
=
create
(
:environment
,
project:
projects
[
3
])
[
3
,
31
].
each
do
|
n
|
deployment_options
=
{
created_at:
n
.
days
.
ago
,
project:
env
.
project
,
environment:
env
}
create
(
:deployment
,
:failed
,
deployment_options
)
create
(
:deployment
,
:success
,
deployment_options
)
create
(
:deployment
,
:failed
,
**
deployment_options
)
create
(
:deployment
,
:success
,
**
deployment_options
)
create_list
(
:project_snippet
,
2
,
project:
projects
[
0
],
created_at:
n
.
days
.
ago
)
create
(
:personal_snippet
,
created_at:
n
.
days
.
ago
)
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