Skip to content

Commit 77c6a94

Browse files
committed
linting
1 parent 04eb3b1 commit 77c6a94

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/ruby/lib/readme/metrics.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def initialize(app, endpoint)
1010

1111
def call(env)
1212
path = "#{env["REQUEST_METHOD"]} #{env["PATH_INFO"]}"
13-
HTTParty.post(@endpoint, body: { path: path }.to_json)
13+
HTTParty.post(@endpoint, body: {path: path}.to_json)
1414
@app.call(env)
1515
end
1616
end

packages/ruby/spec/readme/metrics_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
get "/api/foo"
2323
post "/api/bar"
2424

25-
expect(WebMock).to have_requested(:post, readme_endpoint).
26-
with(body: { path: "GET /api/foo" }.to_json)
25+
expect(WebMock).to have_requested(:post, readme_endpoint)
26+
.with(body: {path: "GET /api/foo"}.to_json)
2727

28-
expect(WebMock).to have_requested(:post, readme_endpoint).
29-
with(body: { path: "POST /api/bar" }.to_json)
28+
expect(WebMock).to have_requested(:post, readme_endpoint)
29+
.with(body: {path: "POST /api/bar"}.to_json)
3030
end
3131

3232
def readme_endpoint
@@ -39,7 +39,7 @@ def app
3939

4040
def noop_app
4141
lambda do |env|
42-
[200, {'Content-Type' => 'text/plain'}, ['OK']]
42+
[200, {"Content-Type" => "text/plain"}, ["OK"]]
4343
end
4444
end
4545
end

0 commit comments

Comments
 (0)