Refactor: InstanceInfoと絵文字リアクション利用可能判定テスト (#534)

* Refactor: `InstanceInfo`と絵文字リアクション利用可能判定テスト

* Fix: 新規登録のテストが特定時刻で落ちる問題
This commit is contained in:
KMY(雪あすか) 2024-02-13 08:56:46 +09:00 committed by GitHub
parent e317edecb8
commit ba776d3677
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 68 additions and 37 deletions

View file

@ -407,7 +407,10 @@ RSpec.describe Auth::RegistrationsController do
Setting.registrations_secondary_end_hour = secondary_end_hour
request.headers['Accept-Language'] = accept_language
travel_to Time.now.utc.beginning_of_day + 10.hours
current = Time.now.utc
today = current.beginning_of_day
today += 1.day if current.hour > 10
travel_to today + 10.hours
end
if result