Merge pull request #2911 from consul/backport-fix_time_related_specs

Fix time related specs
This commit is contained in:
Javier Martín
2018-09-24 17:43:22 +02:00
committed by GitHub
12 changed files with 38 additions and 43 deletions

View File

@@ -39,7 +39,7 @@ feature "Admin Notifications" do
end
context "Index" do
scenario "Valid Admin Notifications" do
scenario "Valid Admin Notifications", :with_frozen_time do
draft = create(:admin_notification, segment_recipient: :all_users, title: 'Not yet sent')
sent = create(:admin_notification, :sent, segment_recipient: :administrators,
title: 'Sent one')