blob: 7a295b17231e1c35742e7e8ff8b694f79e4f8b63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe PwaController do
describe 'GET #manifest' do
it 'responds with json' do
get manifest_path(format: :json)
expect(response.body).to include('The complete DevOps platform.')
expect(response).to have_gitlab_http_status(:success)
end
end
describe 'GET #offline' do
it 'responds with static HTML page' do
get offline_path
expect(response.body).to include('You are currently offline')
expect(response).to have_gitlab_http_status(:success)
end
end
end
|