mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-28 16:07:51 +00:00
19 lines
462 B
Ruby
19 lines
462 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe Account::Sensitizes do
|
|
describe 'Scopes' do
|
|
describe '.sensitized' do
|
|
let(:sensitized_account) { Fabricate :account, sensitized_at: 2.days.ago }
|
|
|
|
before { Fabricate :account, sensitized_at: false }
|
|
|
|
it 'returns an array of accounts who are sensitized' do
|
|
expect(Account.sensitized)
|
|
.to contain_exactly(sensitized_account)
|
|
end
|
|
end
|
|
end
|
|
end
|