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