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
0953f72d
Commit
0953f72d
authored
Apr 14, 2021
by
Abdul Wadood
Committed by
Rémy Coutable
Apr 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang offenses in ee/spec/models/geo
parent
5401b3e8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-3
ee/changelogs/unreleased/rails-save-bang-ee-spec-models-geo.yml
...ngelogs/unreleased/rails-save-bang-ee-spec-models-geo.yml
+5
-0
ee/spec/models/geo/project_registry_spec.rb
ee/spec/models/geo/project_registry_spec.rb
+4
-4
ee/spec/models/geo_node_spec.rb
ee/spec/models/geo_node_spec.rb
+3
-3
No files found.
.rubocop_manual_todo.yml
View file @
0953f72d
...
...
@@ -75,9 +75,6 @@ Rails/SaveBang:
-
'
ee/spec/models/elasticsearch_indexed_namespace_spec.rb'
-
'
ee/spec/models/environment_spec.rb'
-
'
ee/spec/models/epic_spec.rb'
-
'
ee/spec/models/geo/project_registry_spec.rb'
-
'
ee/spec/models/geo_node_spec.rb'
-
'
ee/spec/models/geo_node_status_spec.rb'
-
'
ee/spec/models/gitlab_subscription_spec.rb'
-
'
ee/spec/models/issue_spec.rb'
-
'
ee/spec/models/label_note_spec.rb'
...
...
ee/changelogs/unreleased/rails-save-bang-ee-spec-models-geo.yml
0 → 100644
View file @
0953f72d
---
title
:
Fix Rails/SaveBang rubocop offenses in ee/spec/models/
merge_request
:
58115
author
:
Abdul Wadood @abdulwd
type
:
fixed
ee/spec/models/geo/project_registry_spec.rb
View file @
0953f72d
...
...
@@ -797,7 +797,7 @@ RSpec.describe Geo::ProjectRegistry, :geo do
end
it
'sets repository_retry_at to a future time'
do
subject
.
update
(
repository_retry_count:
0
)
subject
.
update
!
(
repository_retry_count:
0
)
subject
.
fail_sync!
(
type
,
message
,
error
)
...
...
@@ -805,7 +805,7 @@ RSpec.describe Geo::ProjectRegistry, :geo do
end
it
'ensures repository_retry_at is capped at one hour'
do
subject
.
update
(
repository_retry_count:
31
)
subject
.
update
!
(
repository_retry_count:
31
)
subject
.
fail_sync!
(
type
,
message
,
error
)
...
...
@@ -882,7 +882,7 @@ RSpec.describe Geo::ProjectRegistry, :geo do
end
it
'sets wiki_retry_at to a future time'
do
subject
.
update
(
wiki_retry_count:
0
)
subject
.
update
!
(
wiki_retry_count:
0
)
subject
.
fail_sync!
(
type
,
message
,
error
)
...
...
@@ -890,7 +890,7 @@ RSpec.describe Geo::ProjectRegistry, :geo do
end
it
'ensures wiki_retry_at is capped at one hour'
do
subject
.
update
(
wiki_retry_count:
31
)
subject
.
update
!
(
wiki_retry_count:
31
)
subject
.
fail_sync!
(
type
,
message
,
error
)
...
...
ee/spec/models/geo_node_spec.rb
View file @
0953f72d
...
...
@@ -148,7 +148,7 @@ RSpec.describe GeoNode, :request_store, :geo, type: :model do
context
'when the oauth_application is missing'
do
before
do
node
.
oauth_application
.
destroy
node
.
oauth_application
.
destroy
!
node
.
oauth_application
=
nil
end
...
...
@@ -255,7 +255,7 @@ RSpec.describe GeoNode, :request_store, :geo, type: :model do
it
'expires cache when removed'
do
expect
(
node
).
to
receive
(
:expire_cache!
)
# 1 for creation 1 for deletion
node
.
destroy
node
.
destroy
!
end
end
...
...
@@ -596,7 +596,7 @@ RSpec.describe GeoNode, :request_store, :geo, type: :model do
expect
(
status
).
to
be_a
(
GeoNodeStatus
)
status
.
save
status
.
save
!
expect
(
new_node
.
find_or_build_status
).
to
eq
(
status
)
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