Skip to content

Commit 0f8092e

Browse files
committed
[GR-17457] Remove Ruby 2.7 on Github Actions
PullRequest: truffleruby/3845
2 parents 6ca2e4e + 061c802 commit 0f8092e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ jobs:
221221
strategy:
222222
fail-fast: false
223223
matrix:
224-
ruby: ['2.7', '3.0', '3.1']
224+
ruby: ['3.0', '3.1']
225225
runs-on: ubuntu-latest
226226
steps:
227227
- uses: actions/checkout@v2

spec/ruby/optional/capi/proc_spec.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@
9393
end
9494

9595
it "raises TypeError if the last argument is not a Hash" do
96-
prc = proc { |*args, **kwargs| [args, kw] }
97-
9896
-> {
99-
@p.rb_proc_call_kw(prc, [42])
97+
@p.rb_proc_call_kw(proc {}, [42])
10098
}.should raise_error(TypeError, 'no implicit conversion of Integer into Hash')
10199
end
102100
end
@@ -125,10 +123,8 @@
125123
end
126124

127125
it "raises TypeError if the last argument is not a Hash" do
128-
prc = proc { |*args, **kwargs, &block| [args, kw, block.call(42)] }
129-
130126
-> {
131-
@p.rb_proc_call_with_block_kw(prc, [42], proc {})
127+
@p.rb_proc_call_with_block_kw(proc {}, [42], proc {})
132128
}.should raise_error(TypeError, 'no implicit conversion of Integer into Hash')
133129
end
134130

0 commit comments

Comments
 (0)