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

better rspec test output

Christophe Bliardd760752677a8
diff --git a/spec/contracts/shared/model_contract_shared_context.rb b/spec/contracts/shared/model_contract_shared_context.rb
index d4ad7d6c558..9ffbc436c39 100644
--- a/spec/contracts/shared/model_contract_shared_context.rb
+++ b/spec/contracts/shared/model_contract_shared_context.rb
@@ -38,11 +38,11 @@ shared_context 'ModelContract shared context' do # rubocop:disable RSpec/Context
context 'when admin' do
let(:current_user) { build_stubbed(:admin) }
- context 'when admin active' do
+ context 'when active' do
include_examples 'contract is valid'
end
- context 'when admin not active' do
+ context 'when not active' do
let(:current_user) { build_stubbed(:admin, status: User.statuses[:locked]) }
it_behaves_like 'contract user is unauthorized'