diff options
Diffstat (limited to 'spec/lib/gitlab/inactive_projects_deletion_warning_tracker_spec.rb')
-rw-r--r-- | spec/lib/gitlab/inactive_projects_deletion_warning_tracker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/inactive_projects_deletion_warning_tracker_spec.rb b/spec/lib/gitlab/inactive_projects_deletion_warning_tracker_spec.rb index 7afb80488d8..cb4fdeed1a1 100644 --- a/spec/lib/gitlab/inactive_projects_deletion_warning_tracker_spec.rb +++ b/spec/lib/gitlab/inactive_projects_deletion_warning_tracker_spec.rb @@ -11,7 +11,7 @@ RSpec.describe Gitlab::InactiveProjectsDeletionWarningTracker, :freeze_time do end it 'returns the list of projects for which deletion warning email has been sent' do - expected_hash = { "project:1" => "#{Date.current}" } + expected_hash = { "project:1" => Date.current.to_s } expect(Gitlab::InactiveProjectsDeletionWarningTracker.notified_projects).to eq(expected_hash) end @@ -57,7 +57,7 @@ RSpec.describe Gitlab::InactiveProjectsDeletionWarningTracker, :freeze_time do end it 'returns the date if a deletion warning email has been sent for a given project' do - expect(Gitlab::InactiveProjectsDeletionWarningTracker.new(project_id).notification_date).to eq("#{Date.current}") + expect(Gitlab::InactiveProjectsDeletionWarningTracker.new(project_id).notification_date).to eq(Date.current.to_s) end it 'returns nil if a deletion warning email has not been sent for a given project' do |