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

tests[Op#49396]: add connection manager predicate unit specs

Kabiru Mwenja72fbbc42856e
diff --git a/spec/services/oauth_clients/connection_manager_spec.rb b/spec/services/oauth_clients/connection_manager_spec.rb
index 7c0263a59a0..b89a424a719 100644
--- a/spec/services/oauth_clients/connection_manager_spec.rb
+++ b/spec/services/oauth_clients/connection_manager_spec.rb
@@ -499,6 +499,7 @@ RSpec.describe OAuthClients::ConnectionManager, :webmock, type: :model do
context 'without access token present' do
it 'returns :failed_authorization' do
expect(subject).to eq :failed_authorization
+ expect(instance).to be_authorization_state_failed_authorization
end
end
@@ -515,6 +516,7 @@ RSpec.describe OAuthClients::ConnectionManager, :webmock, type: :model do
it 'returns :connected' do
expect(subject).to eq :connected
+ expect(instance).to be_authorization_state_connected
end
end
@@ -525,6 +527,7 @@ RSpec.describe OAuthClients::ConnectionManager, :webmock, type: :model do
it 'returns :error' do
expect(subject).to eq :error
+ expect(instance).to be_authorization_state_error
end
end
end