mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-09 05:06:14 +00:00
Convert admin/dashboard
spec controller->system (#34208)
This commit is contained in:
parent
539a06f189
commit
f7b1769e8a
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Admin::DashboardController do
|
RSpec.describe 'Admin Dashboard' do
|
||||||
render_views
|
describe 'Viewing the dashboard page' do
|
||||||
|
|
||||||
describe 'GET #index' do
|
|
||||||
let(:user) { Fabricate(:owner_user) }
|
let(:user) { Fabricate(:owner_user) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
@ -14,14 +12,12 @@ RSpec.describe Admin::DashboardController do
|
||||||
sign_in(user)
|
sign_in(user)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns http success and body with system check messages' do
|
it 'returns page with system check messages' do
|
||||||
get :index
|
visit admin_dashboard_path
|
||||||
|
|
||||||
expect(response)
|
expect(page)
|
||||||
.to have_http_status(200)
|
.to have_title(I18n.t('admin.dashboard.title'))
|
||||||
.and have_attributes(
|
.and have_content(I18n.t('admin.system_checks.software_version_patch_check.message_html'))
|
||||||
body: include(I18n.t('admin.system_checks.software_version_patch_check.message_html'))
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
Loading…
Reference in New Issue
Block a user