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

Satisfy rubocop

Wieland Lindenthalc874aad6df03
diff --git a/spec/models/users/scopes/having_reminder_mail_to_send_spec.rb b/spec/models/users/scopes/having_reminder_mail_to_send_spec.rb
index c16f5b2cd9f..32080623616 100644
--- a/spec/models/users/scopes/having_reminder_mail_to_send_spec.rb
+++ b/spec/models/users/scopes/having_reminder_mail_to_send_spec.rb
@@ -193,35 +193,33 @@ describe User, '.having_reminder_mail_to_send', type: :model do
end
end
- context 'with local date range for pausing' do
- context 'that includes scope_time' do
- let(:hawaii_user_pause_reminders) do
- {
- enabled: true,
- first_day: '2021-09-29',
- last_day: '2021-09-29'
- }
- end
+ context 'with local date range for pausing that includes scope_time' do
+ let(:hawaii_user_pause_reminders) do
+ {
+ enabled: true,
+ first_day: '2021-09-29',
+ last_day: '2021-09-29'
+ }
+ end
- it 'is empty' do
- expect(scope)
- .to be_empty
- end
+ it 'is empty' do
+ expect(scope)
+ .to be_empty
end
+ end
- context 'that excludes scope_time' do
- let(:hawaii_user_pause_reminders) do
- {
- enabled: true,
- first_day: '2021-09-30',
- last_day: '2021-09-30'
- }
- end
+ context 'with local date range for pausing that excludes scope_time' do
+ let(:hawaii_user_pause_reminders) do
+ {
+ enabled: true,
+ first_day: '2021-09-30',
+ last_day: '2021-09-30'
+ }
+ end
- it 'contains the user' do
- expect(scope)
- .to match_array([hawaii_user])
- end
+ it 'contains the user' do
+ expect(scope)
+ .to match_array([hawaii_user])
end
end
end