Add terms of service (#33055)
This commit is contained in:
parent
7a2a345c08
commit
30aa0df88c
129 changed files with 1456 additions and 238 deletions
24
spec/requests/api/v1/instances/terms_of_services_spec.rb
Normal file
24
spec/requests/api/v1/instances/terms_of_services_spec.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'Terms of Service' do
|
||||
describe 'GET /api/v1/instance/terms_of_service' do
|
||||
before do
|
||||
Fabricate(:terms_of_service)
|
||||
end
|
||||
|
||||
it 'returns http success' do
|
||||
get api_v1_instance_terms_of_service_path
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
|
||||
expect(response.parsed_body)
|
||||
.to be_present
|
||||
.and include(:content)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue