Apply Style/StringLiteralsInInterpolation rubocop rule
We were already using it in most places.
This commit is contained in:
@@ -417,3 +417,6 @@ Style/SafeNavigation:
|
||||
|
||||
Style/StringLiterals:
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
Style/StringLiteralsInInterpolation:
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
@@ -59,7 +59,7 @@ section "Creating Poll Questions & Answers" do
|
||||
end
|
||||
question.save!
|
||||
Faker::Lorem.words((2..4).to_a.sample).each_with_index do |title, index|
|
||||
description = "<p>#{Faker::Lorem.paragraphs.join('</p><p>')}</p>"
|
||||
description = "<p>#{Faker::Lorem.paragraphs.join("</p><p>")}</p>"
|
||||
answer = Poll::Question::Answer.new(question: question,
|
||||
title: title.capitalize,
|
||||
description: description,
|
||||
|
||||
@@ -194,13 +194,13 @@ describe "Admin booths assignments" do
|
||||
end
|
||||
|
||||
within("#recounts_list") do
|
||||
within("#recounting_#{poll.starts_at.to_date.strftime('%Y%m%d')}") do
|
||||
within("#recounting_#{poll.starts_at.to_date.strftime("%Y%m%d")}") do
|
||||
expect(page).to have_content 1
|
||||
end
|
||||
within("#recounting_#{(poll.ends_at.to_date - 5.days).strftime('%Y%m%d')}") do
|
||||
within("#recounting_#{(poll.ends_at.to_date - 5.days).strftime("%Y%m%d")}") do
|
||||
expect(page).to have_content "-"
|
||||
end
|
||||
within("#recounting_#{poll.ends_at.to_date.strftime('%Y%m%d')}") do
|
||||
within("#recounting_#{poll.ends_at.to_date.strftime("%Y%m%d")}") do
|
||||
expect(page).to have_content 1
|
||||
end
|
||||
end
|
||||
|
||||
@@ -197,9 +197,9 @@ describe Dashboard::Mailer do
|
||||
"among other features and rewards that you will discover. "\
|
||||
"Dont stop adding support and we will not stop rewarding "\
|
||||
"and helping you!")
|
||||
expect(email).to have_body_text("You have #{Setting['months_to_archive_proposals']} months "\
|
||||
expect(email).to have_body_text("You have #{Setting["months_to_archive_proposals"]} months "\
|
||||
"since you publish the proposal to get "\
|
||||
"#{Setting['votes_for_proposal_success']} support and your "\
|
||||
"#{Setting["votes_for_proposal_success"]} support and your "\
|
||||
"proposal can become a reality. But the first days are the "\
|
||||
"most important. It is a challenge. Get ready!")
|
||||
expect(email).to have_body_text("And for you to start with all the motivation,")
|
||||
|
||||
@@ -128,7 +128,7 @@ describe Proposal do
|
||||
it "has a code" do
|
||||
Setting["proposal_code_prefix"] = "TEST"
|
||||
proposal = create(:proposal)
|
||||
expect(proposal.code).to eq "TEST-#{proposal.created_at.strftime('%Y-%m')}-#{proposal.id}"
|
||||
expect(proposal.code).to eq "TEST-#{proposal.created_at.strftime("%Y-%m")}-#{proposal.id}"
|
||||
|
||||
Setting["proposal_code_prefix"] = "MAD"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user