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

baseline api: rubocop refactoring

Sebastian Fiedlschuster26c7b919bc91
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 98ddffc659b..e1146a5f726 100644
--- a/spec/requests/api/v3/work_packages/index_resource_spec.rb
+++ b/spec/requests/api/v3/work_packages/index_resource_spec.rb
@@ -79,6 +79,7 @@ describe 'API v3 Work package resource',
context 'with filtering by typeahead' do
before { get path }
+
subject { last_response }
let(:path) { api_v3_paths.path_for :work_packages, filters: }
@@ -127,6 +128,7 @@ describe 'API v3 Work package resource',
describe 'encoded query props' do
before { get path }
+
subject { last_response }
let(:props) do
@@ -329,7 +331,7 @@ describe 'API v3 Work package resource',
it 'has the absolute timestamps within the collection self link' do
Timecop.freeze do
expect(subject.body)
- .to include_json({timestamps: api_v3_paths.timestamps_to_param_value(timestamps.map(&:absolute))}.to_query.to_json)
+ .to include_json({ timestamps: api_v3_paths.timestamps_to_param_value(timestamps.map(&:absolute)) }.to_query.to_json)
.at_path('_links/self/href')
end
end