mirror of
https://github.com/glitch-soc/mastodon
synced 2025-04-24 20:04:51 +00:00
20 lines
430 B
Ruby
20 lines
430 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe 'Settings Sessions' do
|
|
let(:user) { Fabricate(:user) }
|
|
|
|
before { sign_in(user) }
|
|
|
|
describe 'DELETE /settings/sessions/:id' do
|
|
context 'when session activation does not exist' do
|
|
it 'returns not found' do
|
|
delete settings_session_path(123_456_789)
|
|
|
|
expect(response)
|
|
.to have_http_status(404)
|
|
end
|
|
end
|
|
end
|
|
end
|