Change single quotes to double quotes

This commit is contained in:
Julian Herrero
2019-02-01 16:48:49 +01:00
parent 4a12425987
commit 31ac8b7f55
302 changed files with 6403 additions and 6403 deletions

View File

@@ -52,11 +52,11 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
login_as user_to_login
visit send(path, arguments)
documentable.class.max_documents_allowed.times.each do
documentable_attach_new_file(Rails.root.join('spec/fixtures/files/empty.pdf'))
documentable_attach_new_file(Rails.root.join("spec/fixtures/files/empty.pdf"))
end
expect(page).to have_css ".max-documents-notice", visible: true
expect(page).to have_content 'Remove document'
expect(page).to have_content "Remove document"
end
scenario "Should hide max documents warning after any document removal", :js do
@@ -81,7 +81,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
document = find(".document input[type=file]", visible: false)
attach_file(
document[:id],
Rails.root.join('spec/fixtures/files/empty.pdf'),
Rails.root.join("spec/fixtures/files/empty.pdf"),
make_visible: true
)
end
@@ -94,7 +94,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
login_as user_to_login
visit send(path, arguments)
documentable_attach_new_file(Rails.root.join('spec/fixtures/files/empty.pdf'))
documentable_attach_new_file(Rails.root.join("spec/fixtures/files/empty.pdf"))
expect_document_has_title(0, "empty.pdf")
end
@@ -111,7 +111,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
document_input = find("input[type=file]", visible: false)
attach_file(
document_input[:id],
Rails.root.join('spec/fixtures/files/empty.pdf'),
Rails.root.join("spec/fixtures/files/empty.pdf"),
make_visible: true
)
end
@@ -123,7 +123,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
login_as user_to_login
visit send(path, arguments)
documentable_attach_new_file(Rails.root.join('spec/fixtures/files/empty.pdf'))
documentable_attach_new_file(Rails.root.join("spec/fixtures/files/empty.pdf"))
expect(page).to have_css ".loading-bar.complete"
end
@@ -133,7 +133,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
visit send(path, arguments)
documentable_attach_new_file(
Rails.root.join('spec/fixtures/files/logo_header.png'),
Rails.root.join("spec/fixtures/files/logo_header.png"),
false
)
@@ -144,7 +144,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
login_as user_to_login
visit send(path, arguments)
documentable_attach_new_file(Rails.root.join('spec/fixtures/files/empty.pdf'))
documentable_attach_new_file(Rails.root.join("spec/fixtures/files/empty.pdf"))
expect_document_has_cached_attachment(0, ".pdf")
end
@@ -154,7 +154,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
visit send(path, arguments)
documentable_attach_new_file(
Rails.root.join('spec/fixtures/files/logo_header.png'),
Rails.root.join("spec/fixtures/files/logo_header.png"),
false
)
@@ -178,7 +178,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
login_as user_to_login
visit send(path, arguments)
documentable_attach_new_file(Rails.root.join('spec/fixtures/files/empty.pdf'))
documentable_attach_new_file(Rails.root.join("spec/fixtures/files/empty.pdf"))
click_link "Remove document"
expect(page).not_to have_css("#nested-documents .document")
@@ -201,7 +201,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
visit send(path, arguments)
send(fill_resource_method_name) if fill_resource_method_name
documentable_attach_new_file(Rails.root.join('spec/fixtures/files/empty.pdf'))
documentable_attach_new_file(Rails.root.join("spec/fixtures/files/empty.pdf"))
click_on submit_button
expect(page).to have_content documentable_success_notice
@@ -212,7 +212,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
visit send(path, arguments)
send(fill_resource_method_name) if fill_resource_method_name
documentable_attach_new_file(Rails.root.join('spec/fixtures/files/empty.pdf'))
documentable_attach_new_file(Rails.root.join("spec/fixtures/files/empty.pdf"))
click_on submit_button
documentable_redirected_to_resource_show_or_navigate_to
@@ -287,11 +287,11 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
describe "When allow attached documents setting is disabled" do
before do
Setting['feature.allow_attached_documents'] = false
Setting["feature.allow_attached_documents"] = false
end
after do
Setting['feature.allow_attached_documents'] = true
Setting["feature.allow_attached_documents"] = true
end
scenario "Add new document button should not be available" do