Skip to content

Commit 66f2554

Browse files
authored
Merge pull request #139 from PikachuEXE/connection_pool_3-both
Test against connection_pool 2.x too
2 parents a92020c + 879cbaf commit 66f2554

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ jobs:
88
strategy:
99
matrix:
1010
ruby-version: ['3.2', '3.3', '3.4', '4.0']
11+
gemfile:
12+
- gemfiles/connection_pool_2.gemfile
13+
- gemfiles/connection_pool_3.gemfile
14+
env:
15+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
1116
steps:
1217
- uses: actions/checkout@v6
1318
- name: Set up Ruby

gemfiles/connection_pool_2.gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "connection_pool", "~> 2"
6+
7+
gemspec path: "../"

gemfiles/connection_pool_3.gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "connection_pool", "~> 3"
6+
7+
gemspec path: "../"

spec/apnotic/connection_pool_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
let(:pool_options) do
1111
{
12-
size: 5
12+
# Using 6 since default value is 5 in both 2.x & 3.x
13+
size: 6
1314
}
1415
end
1516

@@ -35,7 +36,7 @@
3536

3637
it "returns a connection pool" do
3738
expect(subject).to be_kind_of(::ConnectionPool)
38-
expect(subject.size).to eq(5)
39+
expect(subject.size).to eq(6)
3940
end
4041

4142
it "passes the connection into a block" do

0 commit comments

Comments
 (0)