FEATURE: User Directory, with sorting and time period filter

This commit is contained in:
Robin Ward
2015-03-18 15:20:34 -04:00
parent 6b85d5582c
commit 3d2d224312
47 changed files with 684 additions and 146 deletions
+15
View File
@@ -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