0
0
Fork 0

Convert auth/setup spec controller->system/request (#33604)

This commit is contained in:
Matt Jankowski 2025-01-16 04:03:46 -05:00 committed by GitHub
parent 72abf05269
commit 998cf0dd53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 58 additions and 26 deletions

View file

@ -1,25 +0,0 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Auth::SetupController do
render_views
describe 'GET #show' do
context 'with a signed out request' do
it 'returns http redirect' do
get :show
expect(response).to be_redirect
end
end
context 'with an unconfirmed signed in user' do
before { sign_in Fabricate(:user, confirmed_at: nil) }
it 'returns http success' do
get :show
expect(response).to have_http_status(200)
end
end
end
end