File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
33class HeartbeatController < ApplicationController
44 def index
5- message = { data : { healthy : true } }
6-
7- render ( json : message )
5+ render (
6+ plain : "OK" ,
7+ status : :ok ,
8+ content_type : "text/plain" ,
9+ )
810 end
911end
Original file line number Diff line number Diff line change 1313 it "returns json" do
1414 get "/heartbeat"
1515
16- expect ( response . content_type ) . to ( eq ( "application/json ; charset=utf-8" ) )
16+ expect ( response . content_type ) . to ( eq ( "text/plain ; charset=utf-8" ) )
1717 end
1818
1919 it "returns the expected data" do
2020 get "/heartbeat"
2121
22- expected = { data : { healthy : true } }
23-
24- expect ( JSON . parse ( response . body , symbolize_names : true ) ) . to ( eq ( expected ) )
22+ expect ( response . body ) . to ( eq ( "OK" ) )
2523 end
2624 end
2725end
You can’t perform that action at this time.
0 commit comments