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:
parent
49ed382c2a
commit
7e3543d96f
3 changed files with 17 additions and 16 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue