diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/models/user_status_spec.rb | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/models/user_status_spec.rb')
-rw-r--r-- | spec/models/user_status_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/user_status_spec.rb b/spec/models/user_status_spec.rb index 663df9712ab..289e1ce1856 100644 --- a/spec/models/user_status_spec.rb +++ b/spec/models/user_status_spec.rb @@ -18,6 +18,14 @@ RSpec.describe UserStatus do expect { status.user.destroy! }.to change { described_class.count }.from(1).to(0) end + describe '#clear_status_after' do + it 'is an alias of #clear_status_at', :freeze_time do + status = build(:user_status, clear_status_at: 8.hours.from_now) + + expect(status.clear_status_after).to be_like_time(8.hours.from_now) + end + end + describe '#clear_status_after=' do it 'sets clear_status_at' do status = build(:user_status) |