BUGFIX: login was broken when login was required

This commit is contained in:
Régis Hanol
2014-07-26 23:16:08 +02:00
parent f66c39c63b
commit 3d6e2713d1
2 changed files with 15 additions and 2 deletions

View File

@ -59,8 +59,13 @@ describe StaticController do
xhr :get, :show, id: 'login'
response.should redirect_to '/'
end
end
it "should display the login template when login is required" do
SiteSetting.stubs(:login_required).returns(true)
xhr :get, :show, id: 'login'
response.should be_success
end
end
describe '#enter' do
context 'without a redirect path' do