about summary refs log tree commit diff
path: root/spec/controllers/well_known/keybase_proof_config_controller_spec.rb
blob: 00f251c3c67554d3fb423518413e67d00e3d9657 (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.media_type).to eq 'application/json'
      expect { JSON.parse(response.body) }.not_to raise_exception
    end
  end
end