mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:21:12 +08:00
Rename 'popular' to 'latest'. First stab at 'Hot' tab.
This commit is contained in:
@ -69,6 +69,14 @@ describe ListController do
|
||||
|
||||
end
|
||||
|
||||
context 'hot' do
|
||||
before do
|
||||
xhr :get, :hot
|
||||
end
|
||||
|
||||
it { should respond_with(:success) }
|
||||
end
|
||||
|
||||
context 'favorited' do
|
||||
it 'raises an error when not logged in' do
|
||||
lambda { xhr :get, :favorited }.should raise_error(Discourse::NotLoggedIn)
|
||||
@ -84,6 +92,7 @@ describe ListController do
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context 'read' do
|
||||
it 'raises an error when not logged in' do
|
||||
lambda { xhr :get, :read }.should raise_error(Discourse::NotLoggedIn)
|
||||
|
Reference in New Issue
Block a user