Skip to content

Commit 907b495

Browse files
authored
Merge pull request #285 from duffn/duffn/update-test-headeres
Use Rack::Response#headers in place of header
2 parents 1fc94f8 + f543a3c commit 907b495

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/prometheus/middleware/exporter_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
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
@@ -47,7 +47,7 @@
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
@@ -108,7 +108,7 @@
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

0 commit comments

Comments
 (0)