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
dc14a890
Commit
dc14a890
authored
May 20, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaky constant in commit entity spec
parent
a733c4a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-11.yml
changelogs/unreleased/leaky-constant-fix-11.yml
+5
-0
spec/serializers/commit_entity_spec.rb
spec/serializers/commit_entity_spec.rb
+3
-3
No files found.
.rubocop.yml
View file @
dc14a890
...
...
@@ -375,7 +375,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/models/concerns/bulk_insertable_associations_spec.rb'
-
'
spec/models/concerns/triggerable_hooks_spec.rb'
-
'
spec/models/repository_spec.rb'
-
'
spec/serializers/commit_entity_spec.rb'
-
'
spec/services/clusters/applications/check_installation_progress_service_spec.rb'
-
'
spec/services/clusters/applications/check_uninstall_progress_service_spec.rb'
-
'
spec/support/shared_contexts/spam_constants.rb'
...
...
changelogs/unreleased/leaky-constant-fix-11.yml
0 → 100644
View file @
dc14a890
---
title
:
Fix leaky constant issue in commit entity spec
merge_request
:
32039
author
:
Rajendra Kadam
type
:
fixed
spec/serializers/commit_entity_spec.rb
View file @
dc14a890
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
describe
CommitEntity
do
SIGNATURE_HTML
=
'TEST'
.
freeze
let
(
:signature_html
)
{
'TEST'
}
let
(
:entity
)
do
described_class
.
new
(
commit
,
request:
request
)
...
...
@@ -16,7 +16,7 @@ describe CommitEntity do
before
do
render
=
double
(
'render'
)
allow
(
render
).
to
receive
(
:call
).
and_return
(
SIGNATURE_HTML
)
allow
(
render
).
to
receive
(
:call
).
and_return
(
signature_html
)
allow
(
request
).
to
receive
(
:project
).
and_return
(
project
)
allow
(
request
).
to
receive
(
:render
).
and_return
(
render
)
...
...
@@ -83,7 +83,7 @@ describe CommitEntity do
it
'exposes "signature_html"'
do
expect
(
request
.
render
).
to
receive
(
:call
)
expect
(
subject
.
fetch
(
:signature_html
)).
to
be
SIGNATURE_HTML
expect
(
subject
.
fetch
(
:signature_html
)).
to
be
signature_html
end
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