2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

correct plugin specs

This commit is contained in:
Sam 2018-01-12 14:42:05 +11:00
parent 49ed382c2a
commit 7e3543d96f
3 changed files with 17 additions and 16 deletions

View file

@ -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