2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

FIX: allows the selection of the default landing tab

This commit is contained in:
Régis Hanol 2013-03-28 14:01:13 +01:00
parent 36e950ee07
commit 1668b5eab2
8 changed files with 81 additions and 88 deletions

View file

@ -8,12 +8,21 @@ describe ListController do
@post = Fabricate(:post, user: @user)
end
context 'index' do
before do
xhr :get, :index
describe 'indexes' do
[:latest, :hot].each do |filter|
context '#{filter}' do
before { xhr :get, filter }
it { should respond_with(:success) }
end
end
[:favorited, :read, :posted, :unread, :new].each do |filter|
context '#{filter}' do
it { expect { xhr :get, filter }.to raise_error(Discourse::NotLoggedIn) }
end
end
it { should respond_with(:success) }
end
context 'category' do