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

linting

ulferts3f199ef68532
diff --git a/spec/requests/api/v3/work_packages/index_resource_spec.rb b/spec/requests/api/v3/work_packages/index_resource_spec.rb
index cbbdd11b839..1d2ad67e7ef 100644
--- a/spec/requests/api/v3/work_packages/index_resource_spec.rb
+++ b/spec/requests/api/v3/work_packages/index_resource_spec.rb
@@ -276,6 +276,9 @@ RSpec.describe 'API v3 Work package resource',
value: 'This the current value')
end
+ let(:original_journal) { work_package.journals.first }
+ let(:current_journal) { work_package.journals.last }
+
def create_customizable_journal(journal:, custom_field:, value:)
create(:journal_customizable_journal,
journal:,
@@ -283,9 +286,6 @@ RSpec.describe 'API v3 Work package resource',
value:)
end
- let(:original_journal) { work_package.journals.first }
- let(:current_journal) { work_package.journals.last }
-
it 'succeeds' do
expect(subject.status).to be 200
end