about summary refs log tree commit diff
path: root/spec/controllers/well_known/keybase_proof_config_controller_spec.rb
blob: 9067e676debda270ca22c3f0208657eaa1004d5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'rails_helper'

describe WellKnown::KeybaseProofConfigController, type: :controller do
  render_views

  describe 'GET #show' do
    it 'renders json' do
      get :show

      expect(response).to have_http_status(200)
      expect(response.content_type).to eq 'application/json'
      expect { JSON.parse(response.body) }.not_to raise_exception
    end
  end
end