From bbaa9dda56daeee66f4745469724ebd99db9f77d Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Tue, 30 May 2017 01:05:30 +0900 Subject: [PATCH] Cover WellKnown::HostMetaController more (#3382) --- spec/controllers/well_known/host_meta_controller_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/controllers/well_known/host_meta_controller_spec.rb b/spec/controllers/well_known/host_meta_controller_spec.rb index 8a040021a6..d647dc97a4 100644 --- a/spec/controllers/well_known/host_meta_controller_spec.rb +++ b/spec/controllers/well_known/host_meta_controller_spec.rb @@ -8,6 +8,13 @@ describe WellKnown::HostMetaController, type: :controller do get :show, format: :xml expect(response).to have_http_status(:success) + expect(response.content_type).to eq 'application/xrd+xml' + expect(response.body).to eq < + + + +XML end end end