Remove duplication of action defintion, add missing spec for topics_by, extract out URL construction logic

This commit is contained in:
Manoj
2013-10-19 18:51:17 +05:30
parent 243a6ae291
commit 7dfa99998f
2 changed files with 31 additions and 41 deletions

View File

@ -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 }