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

Fix deprecated use of implicit block syntax as expectation subject

Aaron Contrerasc85d2223369b
diff --git a/spec/lib/open_project/authentication/strategies/warden/global_basic_auth_spec.rb b/spec/lib/open_project/authentication/strategies/warden/global_basic_auth_spec.rb
index 9c0a288b4b0..c651a8ad45a 100644
--- a/spec/lib/open_project/authentication/strategies/warden/global_basic_auth_spec.rb
+++ b/spec/lib/open_project/authentication/strategies/warden/global_basic_auth_spec.rb
@@ -48,7 +48,7 @@ RSpec.describe Strategies::GlobalBasicAuth do
end
it 'raises an error' do
- expect(config).to raise_error("global user must not be 'schluessel'")
+ expect(&config).to raise_error("global user must not be 'schluessel'")
end
end
@@ -56,7 +56,7 @@ RSpec.describe Strategies::GlobalBasicAuth do
let(:password) { '' }
it 'raises an error' do
- expect(config).to raise_error('password must not be empty')
+ expect(&config).to raise_error('password must not be empty')
end
end