Apply StringConcatenation rule in some places
This rule was added in Rubocop 0.89.0. However, there are some false positives when we don't use interpolation but simply concatenate in order to avoid long lines. Even if there weren't false positives, there are places where we concatenate to emphasize the point that we're adding a certain character to a text. We might reconsider this rule in the future, since we generally prefer interpolation over concatenation.
This commit is contained in:
@@ -58,7 +58,7 @@ describe "Documents" do
|
||||
scenario "Create" do
|
||||
visit new_admin_site_customization_document_path
|
||||
|
||||
attach_file("document_attachment", Rails.root + "spec/fixtures/files/logo.pdf")
|
||||
attach_file("document_attachment", "#{Rails.root}/spec/fixtures/files/logo.pdf")
|
||||
click_button "Upload"
|
||||
|
||||
expect(page).to have_content "Document uploaded succesfully"
|
||||
|
||||
Reference in New Issue
Block a user