Rubocop autocorrect Lint/BlockAlignment and remove from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-16 00:18:27 +02:00
parent 21c6d1c4dd
commit b104765ddc
3 changed files with 2 additions and 11 deletions

View File

@@ -6,15 +6,6 @@
# Note that changes in the inspected code, or installation of new
# 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
# Cop supports --auto-correct.
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.

View File

@@ -8,7 +8,7 @@ feature 'Tracking' do
visit proposals_path
expect(page.html).to include "anonymous"
end
end
scenario 'Usertype level_1_user' do
create(:geozone)

View File

@@ -99,7 +99,7 @@ describe Proposal do
expect(proposal).to be_valid
proposal.responsible_name = "12345678Z"
end
end
it "should not be updated when the author is deleted" do
author = create(:user, :level_three, document_number: "12345678Z")