2024-12-09 11:04:46 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe Admin::TermsOfServiceController do
|
|
|
|
render_views
|
|
|
|
|
2025-01-03 09:28:14 +01:00
|
|
|
let(:user) { Fabricate(:admin_user) }
|
2024-12-09 11:04:46 +01:00
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in user, scope: :user
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'GET #index' do
|
|
|
|
it 'returns http success' do
|
|
|
|
get :index
|
|
|
|
|
|
|
|
expect(response).to have_http_status(:success)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|