Add and apply Style/RedundantInterpolation rule

Somehow I thought we already had this rule; must have forgotten to
actually add it.
This commit is contained in:
Javi Martín
2021-08-09 19:26:32 +02:00
parent 99bbad9b1e
commit 469b39ffa3
9 changed files with 21 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ shared_examples "relationable" do |relationable_model_name|
expect(page).to have_css ".add-related-content[aria-expanded='true']"
within("#related_content") do
fill_in "Link to related content", with: "#{url + related1.url}"
fill_in "Link to related content", with: "#{url}#{related1.url}"
click_button "Add"
end
@@ -53,7 +53,7 @@ shared_examples "relationable" do |relationable_model_name|
click_button "Add related content"
within("#related_content") do
fill_in "Link to related content", with: "#{url + related2.url}"
fill_in "Link to related content", with: "#{url}#{related2.url}"
click_button "Add"
end