Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Indent

Oliver Günther2ce8b06c57bb
diff --git a/modules/auth_saml/app/services/saml/providers/set_attributes_service.rb b/modules/auth_saml/app/services/saml/providers/set_attributes_service.rb
index ccd0285f5e4..2481c4c2964 100644
--- a/modules/auth_saml/app/services/saml/providers/set_attributes_service.rb
+++ b/modules/auth_saml/app/services/saml/providers/set_attributes_service.rb
@@ -54,7 +54,7 @@ module Saml
options
.select { |key, _| Saml::Provider.stored_attributes[:options].include?(key.to_s) }
.each do |key, value|
- model.public_send(:"#{key}=", value)
+ model.public_send(:"#{key}=", value)
end
end
diff --git a/modules/auth_saml/spec/services/saml/providers/set_attributes_service_spec.rb b/modules/auth_saml/spec/services/saml/providers/set_attributes_service_spec.rb
index ae5086a97cf..1c389d58560 100644
--- a/modules/auth_saml/spec/services/saml/providers/set_attributes_service_spec.rb
+++ b/modules/auth_saml/spec/services/saml/providers/set_attributes_service_spec.rb
@@ -85,7 +85,7 @@ RSpec.describe Saml::Providers::SetAttributesService, type: :model do
describe "SLO URL" do
let(:options) do
{
- idp_slo_service_url: idp_slo_service_url
+ idp_slo_service_url:
}
end
diff --git a/modules/storages/spec/requests/project_storages_open_spec.rb b/modules/storages/spec/requests/project_storages_open_spec.rb
index a04401e1057..4baeb7b0f06 100644
--- a/modules/storages/spec/requests/project_storages_open_spec.rb
+++ b/modules/storages/spec/requests/project_storages_open_spec.rb
@@ -75,7 +75,7 @@ RSpec.describe "projects/:project_id/project_storages/:id/open" do
get route, {}, { "HTTP_ACCEPT" => "text/vnd.turbo-stream.html" }
expect(last_response).to have_http_status(:ok)
- expect(last_response.body).to eq("<turbo-stream action=\"update\" target=\"open-project-storage-modal-body-component\">\n <template>\n \n <div class=\"blankslate-container\">\n <div data-view-component=\"true\" class=\"FeedbackMessage blankslate\">\n <svg aria-hidden=\"true\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" width=\"24\" data-view-component=\"true\" class=\"octicon octicon-check-circle blankslate-icon color-fg-success\">\n <path d=\"M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z\"></path><path d=\"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z\"></path>\n</svg>\n\n <h2 data-view-component=\"true\" class=\"blankslate-heading\">Integration setup completed</h2>\n <p id=\"waiting_subtitle\" data-view-component=\"true\">You are being redirected</p>\n\n</div> </div>\n\n\n\n </template>\n</turbo-stream>\n\n") # rubocop:disable Layout/LineLength
+ expect(last_response.body).to be_html_eql("<turbo-stream action=\"update\" target=\"open-project-storage-modal-body-component\">\n <template>\n \n <div class=\"blankslate-container\">\n <div data-view-component=\"true\" class=\"FeedbackMessage blankslate\">\n <svg aria-hidden=\"true\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" width=\"24\" data-view-component=\"true\" class=\"octicon octicon-check-circle blankslate-icon color-fg-success\">\n <path d=\"M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z\"></path><path d=\"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z\"></path>\n</svg>\n\n <h2 data-view-component=\"true\" class=\"blankslate-heading\">Integration setup completed</h2>\n <p id=\"waiting_subtitle\" data-view-component=\"true\">You are being redirected</p>\n\n</div> </div>\n\n\n\n </template>\n</turbo-stream>\n\n") # rubocop:disable Layout/LineLength
end
end
end
@@ -85,10 +85,8 @@ RSpec.describe "projects/:project_id/project_storages/:id/open" do
before do
Storages::Peripherals::Registry.stub(
- "nextcloud.queries.file_info", ->(_) do
- ServiceResult.failure(result: code,
- errors: Storages::StorageError.new(code:))
- end
+ "nextcloud.queries.file_info",
+ ->(_) { ServiceResult.failure(result: code, errors: Storages::StorageError.new(code:)) }
)
end
@@ -100,9 +98,10 @@ RSpec.describe "projects/:project_id/project_storages/:id/open" do
get route, {}, { "HTTP_ACCEPT" => "text/html" }
expect(last_response).to have_http_status(:found)
- expect(last_response.headers["Location"]).to eq (
- "http://#{Setting.host_name}/oauth_clients/#{storage.oauth_client.client_id}/ensure_connection?destination_url=http%3A%2F%2F#{CGI.escape(Setting.host_name)}%2Fprojects%2F#{project.identifier}%2Fproject_storages%2F#{project_storage.id}%2Fopen&storage_id=#{storage.id}"
- )
+ expect(last_response.headers["Location"])
+ .to eq("http://#{Setting.host_name}/oauth_clients/#{storage.oauth_client.client_id}/ensure_connection?" \
+ "destination_url=http%3A%2F%2F#{CGI.escape(Setting.host_name)}%2Fprojects%2F#{project.identifier}" \
+ "%2Fproject_storages%2F#{project_storage.id}%2Fopen&storage_id=#{storage.id}")
end
end
@@ -111,7 +110,7 @@ RSpec.describe "projects/:project_id/project_storages/:id/open" do
get route, {}, { "HTTP_ACCEPT" => "text/html" }
expect(last_response).to have_http_status(:found)
- expect(last_response.headers["Location"]).to eq ("http://#{Setting.host_name}/projects/#{project.identifier}")
+ expect(last_response.headers["Location"]).to eq("http://#{Setting.host_name}/projects/#{project.identifier}")
expect(last_request.session["flash"]["flashes"])
.to eq({
"modal" => {
@@ -142,7 +141,7 @@ RSpec.describe "projects/:project_id/project_storages/:id/open" do
get route, {}, { "HTTP_ACCEPT" => "text/html" }
expect(last_response).to have_http_status(:found)
- expect(last_response.headers["Location"]).to eq ("http://#{Setting.host_name}/projects/#{project.identifier}")
+ expect(last_response.headers["Location"]).to eq("http://#{Setting.host_name}/projects/#{project.identifier}")
expect(last_request.session["flash"]["flashes"])
.to eq({
"modal" => {