Skip to content

Commit 43f9af2

Browse files
committed
Fix ameba complaints
1 parent 4628f98 commit 43f9af2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.ameba.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Lint/NotNil:
2525

2626
Lint/SpecFilename:
2727
Excluded:
28-
- spec/parsers_helper.cr
28+
- spec/*_helper.cr
2929

3030

3131
#

spec/helpers/networking/connection_pool_spec.cr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require "db"
1717
require "pg"
1818
require "spectator"
1919

20-
require "../../load_config"
20+
require "../../load_config_helper"
2121
require "../../../src/invidious/helpers/crystal_class_overrides"
2222
require "../../../src/invidious/connection/*"
2323

@@ -55,15 +55,15 @@ Spectator.describe Invidious::ConnectionPool do
5555
it "Can make streaming requests" do
5656
pool = Invidious::ConnectionPool::Pool.new(max_capacity: 100) { next make_client(TEST_SERVER_URL) }
5757

58-
expect(pool.get("/get") { |r| r.body_io.gets_to_end }).to eq("get")
59-
expect(pool.get("/post") { |r| r.body }).to eq("")
60-
expect(pool.post("/post") { |r| r.body_io.gets_to_end }).to eq("post")
58+
expect(pool.get("/get", &.body_io.gets_to_end)).to eq("get")
59+
expect(pool.get("/post", &.body)).to eq("")
60+
expect(pool.post("/post", &.body_io.gets_to_end)).to eq("post")
6161
end
6262

6363
it "Allows more than one clients to be checked out (if applicable)" do
6464
pool = Invidious::ConnectionPool::Pool.new(max_capacity: 100) { next make_client(TEST_SERVER_URL) }
6565

66-
pool.checkout do |client|
66+
pool.checkout do |_|
6767
expect(pool.post("/post").body).to eq("post")
6868
end
6969
end
File renamed without changes.

0 commit comments

Comments
 (0)