privacy_policies_spec.rb 379 B

123456789101112131415161718
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe 'Privacy Policy' do
  4. describe 'GET /api/v1/instance/privacy_policy' do
  5. it 'returns http success' do
  6. get api_v1_instance_privacy_policy_path
  7. expect(response)
  8. .to have_http_status(200)
  9. expect(body_as_json)
  10. .to be_present
  11. .and include(:content)
  12. end
  13. end
  14. end