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
77c66674
Commit
77c66674
authored
Apr 04, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
Apr 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix duplicate spec in update large table spec
parent
d10ee385
Changes
3
Show 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/update-large-table-spec.yml
changelogs/unreleased/update-large-table-spec.yml
+5
-0
spec/rubocop/cop/migration/update_large_table_spec.rb
spec/rubocop/cop/migration/update_large_table_spec.rb
+3
-3
No files found.
.rubocop.yml
View file @
77c66674
...
...
@@ -400,6 +400,5 @@ RSpec/RepeatedExample:
-
'
spec/lib/gitlab/closing_issue_extractor_spec.rb'
-
'
spec/lib/gitlab/danger/changelog_spec.rb'
-
'
spec/lib/gitlab/import_export/project/relation_factory_spec.rb'
-
'
spec/rubocop/cop/migration/update_large_table_spec.rb'
-
'
spec/services/notification_service_spec.rb'
-
'
spec/services/web_hook_service_spec.rb'
changelogs/unreleased/update-large-table-spec.yml
0 → 100644
View file @
77c66674
---
title
:
Update duplicate specs in update large table spec
merge_request
:
28787
author
:
Rajendra Kadam
type
:
added
spec/rubocop/cop/migration/update_large_table_spec.rb
View file @
77c66674
...
...
@@ -76,14 +76,14 @@ describe RuboCop::Cop::Migration::UpdateLargeTable do
expect
(
cop
.
offenses
).
to
be_empty
end
it
'registers no offense for
update_column_in_batches
'
do
it
'registers no offense for
rename_column_concurrently
'
do
inspect_source
(
"rename_column_concurrently :
#{
table
}
, :column, default: true"
)
expect
(
cop
.
offenses
).
to
be_empty
end
it
'registers no offense for update_column_
in_batches
'
do
inspect_source
(
"
add_column_with_default
:
#{
table
}
, :column, default: true"
)
it
'registers no offense for update_column_
concurrently
'
do
inspect_source
(
"
update_column_concurrently
:
#{
table
}
, :column, default: true"
)
expect
(
cop
.
offenses
).
to
be_empty
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