mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Remove duplication of action defintion, add missing spec for topics_by, extract out URL construction logic
This commit is contained in:
@ -133,6 +133,15 @@ describe ListController do
|
||||
|
||||
end
|
||||
|
||||
describe "topics_by" do
|
||||
let!(:user) { log_in }
|
||||
|
||||
it "should respond with a list" do
|
||||
xhr :get, :topics_by, username: @user.username
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
|
||||
context "private_messages" do
|
||||
let!(:user) { log_in }
|
||||
|
||||
|
Reference in New Issue
Block a user