Skip to content

Commit

Permalink
Indent
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Sep 9, 2024
1 parent 41b712a commit dd48a4d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def update_options(options) # rubocop:disable Metrics/AbcSize
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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
describe "SLO URL" do
let(:options) do
{
idp_slo_service_url: idp_slo_service_url
idp_slo_service_url:
}
end

Expand Down
17 changes: 8 additions & 9 deletions modules/storages/spec/requests/project_storages_open_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@

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

Expand All @@ -100,9 +98,10 @@
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

Expand All @@ -111,7 +110,7 @@
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" => {
Expand Down Expand Up @@ -142,7 +141,7 @@
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" => {
Expand Down

0 comments on commit dd48a4d

Please sign in to comment.