DEV: Fix a flaky spec (#15529)
It's very much possible for there to be a topic with id 999.
This commit is contained in:
parent
8e2dd937cb
commit
0d9ab0beb3
|
@ -3986,7 +3986,9 @@ RSpec.describe TopicsController do
|
|||
|
||||
describe 'when topic id is invalid' do
|
||||
it 'should return the right response' do
|
||||
post "/t/999/invite.json", params: {
|
||||
id = topic.id
|
||||
topic.destroy!
|
||||
post "/t/#{id}/invite.json", params: {
|
||||
email: user.email
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue