Convert admin/follow_recommendations spec controller->system (#33533)

This commit is contained in:
Matt Jankowski 2025-01-10 04:10:21 -05:00 committed by GitHub
parent 2499cd01db
commit 8d4ca95163
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 21 deletions

View File

@ -1,21 +0,0 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Admin::FollowRecommendationsController do
render_views
let(:user) { Fabricate(:admin_user) }
before do
sign_in user, scope: :user
end
describe 'GET #show' do
it 'returns http success' do
get :show
expect(response).to have_http_status(:success)
end
end
end

View File

@ -0,0 +1,18 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'Admin Follow Recommendations' do
let(:user) { Fabricate(:admin_user) }
before { sign_in(user) }
describe 'Viewing follow recommendations details' do
it 'shows a list of accounts' do
visit admin_follow_recommendations_path
expect(page)
.to have_content(I18n.t('admin.follow_recommendations.title'))
end
end
end