mirror of
https://github.com/discourse/discourse.git
synced 2025-09-09 19:03:09 +08:00
A bunch of tweaks to the Users directory
- Move user directory from `/directory` to `/users/` - Defaults to 'weekly' time period - Don't include deleted topics/posts in the results - Move heart icon to header instead of on each row - "Users" instead of "Users found"
This commit is contained in:
parent
f807527650
commit
7ef306cd3b
19 changed files with 87 additions and 106 deletions
|
@ -2,12 +2,12 @@ require 'spec_helper'
|
|||
|
||||
describe DirectoryItemsController do
|
||||
|
||||
it "requires an `id` param" do
|
||||
it "requires a `period` param" do
|
||||
->{ xhr :get, :index }.should raise_error
|
||||
end
|
||||
|
||||
it "requires a proper `id` param" do
|
||||
xhr :get, :index, id: 'eviltrout'
|
||||
it "requires a proper `period` param" do
|
||||
xhr :get, :index, period: 'eviltrout'
|
||||
response.should_not be_success
|
||||
end
|
||||
|
||||
|
@ -18,7 +18,7 @@ describe DirectoryItemsController do
|
|||
end
|
||||
|
||||
it "succeeds with a valid value" do
|
||||
xhr :get, :index, id: 'all'
|
||||
xhr :get, :index, period: 'all'
|
||||
response.should be_success
|
||||
json = ::JSON.parse(response.body)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue