mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: allows the selection of the default landing tab
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user