mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-30 05:51:41 +01:00
Convert admin/follow_recommendations
spec controller->system (#33533)
This commit is contained in:
parent
2499cd01db
commit
8d4ca95163
@ -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
|
|
18
spec/system/admin/follow_recommendations_spec.rb
Normal file
18
spec/system/admin/follow_recommendations_spec.rb
Normal 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
|
Loading…
x
Reference in New Issue
Block a user