mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
safe automatic fixes by rubocop (#8994)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#-- encoding: UTF-8
|
||||
|
||||
#-- copyright
|
||||
# OpenProject is an open source project management software.
|
||||
# Copyright (C) 2012-2021 the OpenProject GmbH
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#-- encoding: UTF-8
|
||||
|
||||
#-- copyright
|
||||
# OpenProject is an open source project management software.
|
||||
# Copyright (C) 2012-2021 the OpenProject GmbH
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#-- encoding: UTF-8
|
||||
|
||||
#-- copyright
|
||||
# OpenProject is an open source project management software.
|
||||
# Copyright (C) 2012-2021 the OpenProject GmbH
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#-- encoding: UTF-8
|
||||
|
||||
#-- copyright
|
||||
# OpenProject is an open source project management software.
|
||||
# Copyright (C) 2012-2021 the OpenProject GmbH
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#-- encoding: UTF-8
|
||||
|
||||
#-- copyright
|
||||
# OpenProject is an open source project management software.
|
||||
# Copyright (C) 2012-2021 the OpenProject GmbH
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#-- encoding: UTF-8
|
||||
|
||||
#-- copyright
|
||||
# OpenProject is an open source project management software.
|
||||
# Copyright (C) 2012-2021 the OpenProject GmbH
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#-- encoding: UTF-8
|
||||
|
||||
#-- copyright
|
||||
# OpenProject is an open source project management software.
|
||||
# Copyright (C) 2012-2021 the OpenProject GmbH
|
||||
|
||||
@@ -30,7 +30,6 @@ require 'spec_helper'
|
||||
require 'open_project/auth_plugins'
|
||||
|
||||
describe OpenProject::Plugins::AuthPlugin do
|
||||
|
||||
class MockEngine
|
||||
extend OpenProject::Plugins::AuthPlugin
|
||||
end
|
||||
@@ -86,12 +85,12 @@ describe OpenProject::Plugins::AuthPlugin do
|
||||
end
|
||||
|
||||
it 'should register all strategies' do
|
||||
expect(strategies.keys.to_a).to eq [:strategy_a, :strategy_b]
|
||||
expect(strategies.keys.to_a).to eq %i[strategy_a strategy_b]
|
||||
end
|
||||
|
||||
it 'should register register each strategy (i.e. middleware) only once' do
|
||||
expect(middlewares.size).to eq 2
|
||||
expect(middlewares).to eq [:strategy_a, :strategy_b]
|
||||
expect(middlewares).to eq %i[strategy_a strategy_b]
|
||||
end
|
||||
|
||||
it 'should associate the correct providers with their respective strategies' do
|
||||
|
||||
@@ -80,7 +80,7 @@ describe OmniAuth::FlexibleStrategy do
|
||||
|
||||
it 'should match the registered providers' do
|
||||
[provider_a, provider_b].each do |pro|
|
||||
code, _ = middleware.call env_for("http://www.example.com/auth/#{pro[:name]}/callback")
|
||||
code, = middleware.call env_for("http://www.example.com/auth/#{pro[:name]}/callback")
|
||||
|
||||
expect(code).to eq 'hit'
|
||||
end
|
||||
|
||||
@@ -56,4 +56,3 @@ describe 'layouts/base', type: :view do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -37,7 +37,6 @@ describe 'rendering the login buttons for all providers' do
|
||||
]
|
||||
end
|
||||
|
||||
|
||||
before do
|
||||
allow(OpenProject::Plugins::AuthPlugin).to receive(:providers).and_return(providers)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user