mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
FEATURE: User Directory, with sorting and time period filter
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe DirectoryItem do
|
||||
context 'refresh' do
|
||||
let!(:user) { Fabricate(:user) }
|
||||
|
||||
it "creates the record for the user" do
|
||||
DirectoryItem.refresh!
|
||||
expect(DirectoryItem.where(period_type: DirectoryItem.period_types[:all])
|
||||
.where(user_id: user.id)
|
||||
.exists?).to be_true
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user