File tree Expand file tree Collapse file tree
spec/prometheus/middleware Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 get '/metrics' , nil , headers
3636
3737 expect ( last_response . status ) . to eql ( 200 )
38- expect ( last_response . header [ 'content-type' ] ) . to eql ( fmt ::CONTENT_TYPE )
38+ expect ( last_response . headers [ 'content-type' ] ) . to eql ( fmt ::CONTENT_TYPE )
3939 expect ( last_response . body ) . to eql ( fmt . marshal ( registry ) )
4040 end
4141 end
4747 get '/metrics' , nil , headers
4848
4949 expect ( last_response . status ) . to eql ( 406 )
50- expect ( last_response . header [ 'content-type' ] ) . to eql ( 'text/plain' )
50+ expect ( last_response . headers [ 'content-type' ] ) . to eql ( 'text/plain' )
5151 expect ( last_response . body ) . to eql ( message )
5252 end
5353 end
108108 get 'http://example.org:9999/metrics' , nil , { }
109109
110110 expect ( last_response . status ) . to eql ( 200 )
111- expect ( last_response . header [ 'content-type' ] ) . to eql ( text ::CONTENT_TYPE )
111+ expect ( last_response . headers [ 'content-type' ] ) . to eql ( text ::CONTENT_TYPE )
112112 expect ( last_response . body ) . to eql ( text . marshal ( registry ) )
113113 end
114114 end
You can’t perform that action at this time.
0 commit comments