Fix all Layout/TrailingWhitespace rubocop issues and remove from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-21 22:32:11 +02:00
parent cf81c740b1
commit 80bcf38dc5
4 changed files with 3 additions and 9 deletions

View File

@@ -674,12 +674,6 @@ Style/SymbolProc:
- 'lib/manager_authenticator.rb' - 'lib/manager_authenticator.rb'
- 'spec/factories.rb' - 'spec/factories.rb'
# Offense count: 2
# Cop supports --auto-correct.
Layout/TrailingWhitespace:
Exclude:
- 'app/controllers/admin/api/stats_controller.rb'
# Offense count: 31 # Offense count: 31
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/UnneededInterpolation: Style/UnneededInterpolation:

View File

@@ -1,7 +1,7 @@
class Geozone < ActiveRecord::Base class Geozone < ActiveRecord::Base
include Graphqlable include Graphqlable
has_many :proposals has_many :proposals
has_many :spending_proposals has_many :spending_proposals
has_many :debates has_many :debates

View File

@@ -1,7 +1,7 @@
class Organization < ActiveRecord::Base class Organization < ActiveRecord::Base
include Graphqlable include Graphqlable
belongs_to :user, touch: true belongs_to :user, touch: true
validates :name, presence: true validates :name, presence: true

View File

@@ -197,7 +197,7 @@ describe "Abilities::Common" do
it { should_not be_able_to(:vote, investment_in_accepting_budget) } it { should_not be_able_to(:vote, investment_in_accepting_budget) }
it { should be_able_to(:vote, investment_in_selecting_budget) } it { should be_able_to(:vote, investment_in_selecting_budget) }
it { should_not be_able_to(:vote, investment_in_balloting_budget) } it { should_not be_able_to(:vote, investment_in_balloting_budget) }
it { should_not be_able_to(:destroy, investment_in_accepting_budget) } it { should_not be_able_to(:destroy, investment_in_accepting_budget) }
it { should_not be_able_to(:destroy, investment_in_reviewing_budget) } it { should_not be_able_to(:destroy, investment_in_reviewing_budget) }
it { should_not be_able_to(:destroy, investment_in_selecting_budget) } it { should_not be_able_to(:destroy, investment_in_selecting_budget) }