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
c78a643b
Commit
c78a643b
authored
May 19, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaky constant in json serialization spec
parent
d194f3dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-18.yml
changelogs/unreleased/leaky-constant-fix-18.yml
+5
-0
spec/models/concerns/blocks_json_serialization_spec.rb
spec/models/concerns/blocks_json_serialization_spec.rb
+5
-2
No files found.
.rubocop.yml
View file @
c78a643b
...
...
@@ -380,7 +380,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/migrations/encrypt_plaintext_attributes_on_application_settings_spec.rb'
-
'
spec/models/clusters/cluster_spec.rb'
-
'
spec/models/concerns/batch_destroy_dependent_associations_spec.rb'
-
'
spec/models/concerns/blocks_json_serialization_spec.rb'
-
'
spec/models/concerns/bulk_insert_safe_spec.rb'
-
'
spec/models/concerns/bulk_insertable_associations_spec.rb'
-
'
spec/models/concerns/mentionable_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-18.yml
0 → 100644
View file @
c78a643b
---
title
:
Fix leaky constant issue in json serialization spec
merge_request
:
32051
author
:
Rajendra Kadam
type
:
fixed
spec/models/concerns/blocks_json_serialization_spec.rb
View file @
c78a643b
...
...
@@ -3,8 +3,11 @@
require
'spec_helper'
describe
BlocksJsonSerialization
do
DummyModel
=
Class
.
new
do
include
BlocksJsonSerialization
before
do
stub_const
(
'DummyModel'
,
Class
.
new
)
DummyModel
.
class_eval
do
include
BlocksJsonSerialization
end
end
it
'blocks as_json'
do
...
...
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