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 spec descriptions

Dombi Attila2868748ce69c
diff --git a/spec/contracts/user_preferences/params_contract_spec.rb b/spec/contracts/user_preferences/params_contract_spec.rb
index 7b42809a3b4..b23df1c2830 100644
--- a/spec/contracts/user_preferences/params_contract_spec.rb
+++ b/spec/contracts/user_preferences/params_contract_spec.rb
@@ -89,7 +89,7 @@ describe UserPreferences::ParamsContract do
context 'when project setting with start_date, due_date and overdue set' do
let(:notification_settings) do
[
- { start_date: 24, due_date: 24, overdue: 0 }
+ { project_id: 1234, start_date: 24, due_date: 24, overdue: 0 }
]
end
@@ -99,7 +99,7 @@ describe UserPreferences::ParamsContract do
context 'when global setting with start_date, due_date and overdue set' do
let(:notification_settings) do
[
- { project_id: 1234, start_date: 24, due_date: 24, overdue: 0 }
+ { start_date: 24, due_date: 24, overdue: 0 }
]
end
@@ -109,7 +109,7 @@ describe UserPreferences::ParamsContract do
context 'when project setting with due_date and start_date with overdue are invalid' do
let(:notification_settings) do
[
- { start_date: 22, due_date: 24, overdue: 24 }
+ { project_id: 1234, start_date: 22, due_date: 24, overdue: 24 }
]
end
@@ -119,7 +119,7 @@ describe UserPreferences::ParamsContract do
context 'when global setting with due_date and start_date with overdue are invalid' do
let(:notification_settings) do
[
- { project_id: 1234, start_date: 22, due_date: 24, overdue: 24 }
+ { start_date: 22, due_date: 24, overdue: 24 }
]
end
@@ -129,7 +129,7 @@ describe UserPreferences::ParamsContract do
context 'when project setting with start_date, due_date and overdue missing' do
let(:notification_settings) do
[
- { start_date: 24, due_date: 24 }
+ { project_id: 1234, start_date: 24, due_date: 24 }
]
end
@@ -139,7 +139,7 @@ describe UserPreferences::ParamsContract do
context 'when global setting with start_date, due_date and overdue missing' do
let(:notification_settings) do
[
- { project_id: 1234, start_date: 24, due_date: 24 }
+ { start_date: 24, due_date: 24 }
]
end
@@ -149,7 +149,7 @@ describe UserPreferences::ParamsContract do
context 'when project setting with start_date, due_date invalid and overdue missing' do
let(:notification_settings) do
[
- { start_date: 24, due_date: 22 }
+ { project_id: 1234, start_date: 24, due_date: 22 }
]
end
@@ -159,7 +159,7 @@ describe UserPreferences::ParamsContract do
context 'when global setting with start_date, due_date invalid and overdue missing' do
let(:notification_settings) do
[
- { project_id: 1234, start_date: 24, due_date: 22 }
+ { start_date: 24, due_date: 22 }
]
end