Rubocop autocorrect Lint/BlockAlignment and remove from rubocop_todo list
This commit is contained in:
@@ -6,15 +6,6 @@
|
|||||||
# Note that changes in the inspected code, or installation of new
|
# Note that changes in the inspected code, or installation of new
|
||||||
# versions of RuboCop, may require this file to be generated again.
|
# versions of RuboCop, may require this file to be generated again.
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: AlignWith, SupportedStyles.
|
|
||||||
# SupportedStyles: either, start_of_block, start_of_line
|
|
||||||
Lint/BlockAlignment:
|
|
||||||
Exclude:
|
|
||||||
- 'spec/features/tracks_spec.rb'
|
|
||||||
- 'spec/models/proposal_spec.rb'
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ feature 'Tracking' do
|
|||||||
visit proposals_path
|
visit proposals_path
|
||||||
|
|
||||||
expect(page.html).to include "anonymous"
|
expect(page.html).to include "anonymous"
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Usertype level_1_user' do
|
scenario 'Usertype level_1_user' do
|
||||||
create(:geozone)
|
create(:geozone)
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ describe Proposal do
|
|||||||
|
|
||||||
expect(proposal).to be_valid
|
expect(proposal).to be_valid
|
||||||
proposal.responsible_name = "12345678Z"
|
proposal.responsible_name = "12345678Z"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should not be updated when the author is deleted" do
|
it "should not be updated when the author is deleted" do
|
||||||
author = create(:user, :level_three, document_number: "12345678Z")
|
author = create(:user, :level_three, document_number: "12345678Z")
|
||||||
|
|||||||
Reference in New Issue
Block a user