sensitizes_spec.rb 460 B

123456789101112131415161718
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe Account::Sensitizes do
  4. describe 'Scopes' do
  5. describe '.sensitized' do
  6. let(:sensitized_account) { Fabricate :account, sensitized_at: 2.days.ago }
  7. before { Fabricate :account, sensitized_at: nil }
  8. it 'returns an array of accounts who are sensitized' do
  9. expect(Account.sensitized)
  10. .to contain_exactly(sensitized_account)
  11. end
  12. end
  13. end
  14. end