Fix all Style/UnneededInterpolation rubocop issues and remove from rubocop_tod

This commit is contained in:
Bertocq
2017-07-04 22:44:08 +02:00
parent 9f38192e13
commit 28970c6701
11 changed files with 37 additions and 50 deletions

View File

@@ -103,7 +103,7 @@ describe Budget::Investment do
let(:investment) { create(:budget_investment) }
it "returns the proposal id" do
expect(investment.code).to include("#{investment.id}")
expect(investment.code).to include((investment.id).to_s)
end
it "returns the administrator id when assigned" do

View File

@@ -25,7 +25,7 @@ describe Verification::Residence do
end
it "should validate user has allowed age" do
residence = Verification::Residence.new("date_of_birth(3i)" => "1", "date_of_birth(2i)" => "1", "date_of_birth(1i)" => "#{5.years.ago.year}")
residence = Verification::Residence.new("date_of_birth(3i)" => "1", "date_of_birth(2i)" => "1", "date_of_birth(1i)" => (5.years.ago.year).to_s)
expect(residence).to_not be_valid
expect(residence.errors[:date_of_birth]).to include("You don't have the required age to participate")
end

View File

@@ -136,7 +136,7 @@ describe SpendingProposal do
let(:spending_proposal) { create(:spending_proposal) }
it "returns the proposal id" do
expect(spending_proposal.code).to include("#{spending_proposal.id}")
expect(spending_proposal.code).to include((spending_proposal.id).to_s)
end
it "returns the administrator id when assigned" do