mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 06:01:43 +08:00
correct plugin specs
This commit is contained in:
@ -23,7 +23,8 @@ describe ::Presence::PresencesController do
|
||||
|
||||
context 'when not logged in' do
|
||||
it 'should raise the right error' do
|
||||
expect { post '/presence/publish.json' }.to raise_error(Discourse::NotLoggedIn)
|
||||
post '/presence/publish.json'
|
||||
expect(response.status).to eq(403)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user