File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Lint/NotNil:
25
25
26
26
Lint/SpecFilename :
27
27
Excluded :
28
- - spec/parsers_helper .cr
28
+ - spec/*_helper .cr
29
29
30
30
31
31
#
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ require "db"
17
17
require " pg"
18
18
require " spectator"
19
19
20
- require " ../../load_config "
20
+ require " ../../load_config_helper "
21
21
require " ../../../src/invidious/helpers/crystal_class_overrides"
22
22
require " ../../../src/invidious/connection/*"
23
23
@@ -55,15 +55,15 @@ Spectator.describe Invidious::ConnectionPool do
55
55
it " Can make streaming requests" do
56
56
pool = Invidious ::ConnectionPool ::Pool .new(max_capacity: 100 ) { next make_client(TEST_SERVER_URL ) }
57
57
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" )
61
61
end
62
62
63
63
it " Allows more than one clients to be checked out (if applicable)" do
64
64
pool = Invidious ::ConnectionPool ::Pool .new(max_capacity: 100 ) { next make_client(TEST_SERVER_URL ) }
65
65
66
- pool.checkout do |client |
66
+ pool.checkout do |_ |
67
67
expect(pool.post(" /post" ).body).to eq(" post" )
68
68
end
69
69
end
File renamed without changes.
You can’t perform that action at this time.
0 commit comments