Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
if: ${{ contains(matrix.ruby, 'head') }}
run: |
bundle config set force_ruby_platform true
- name: Ignore Gemfile.lock's BUNDLED WITH on ruby-head
if: ${{ contains(matrix.ruby, 'head') }}
run: bundle config set --local version system
- name: Skip installing type checkers
if: ${{ ! contains(matrix.job, 'typecheck_test') }}
run: |
Expand Down Expand Up @@ -106,6 +109,9 @@ jobs:
if: ${{ contains(matrix.ruby, 'head') }}
run: |
bundle config set force_ruby_platform true
- name: Ignore Gemfile.lock's BUNDLED WITH on ruby-head
if: ${{ contains(matrix.ruby, 'head') }}
run: bundle config set --local version system
- name: bin/setup
run: |
bin/setup
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
bundled_gems = JSON.parse(res)["gems"].map{_1["gem"]}
system "gem uninstall #{bundled_gems.join(" ")} --force", exception: true
'
- name: Ignore Gemfile.lock's BUNDLED WITH on dev Ruby
if: ${{ matrix.ruby == 'ucrt' || matrix.ruby == 'mswin' }}
run: bundle config set --local version system
- name: bundle install
run: |
bundle config set without profilers libs
Expand Down
10 changes: 8 additions & 2 deletions test/stdlib/Dir_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def test_exist?
end

def test_fchdir
fd = Dir.new(Dir.pwd).fileno
dir = Dir.new(Dir.pwd)
fd = dir.fileno

with_int(fd) do |int|
assert_send_type(
Expand All @@ -117,6 +118,8 @@ def test_fchdir
Dir, :fchdir, int, &proc { "string" }
)
end
ensure
dir&.close
end

def test_foreach
Expand All @@ -130,14 +133,17 @@ def test_foreach
end

def test_for_fd
fd = Dir.new(Dir.pwd).fileno
dir = Dir.new(Dir.pwd)
fd = dir.fileno

with_int(fd) do |int|
assert_send_type(
"(::int) -> ::Dir",
Dir, :for_fd, int
)
end
ensure
dir&.close
end

def test_getwd
Expand Down
2 changes: 1 addition & 1 deletion test/stdlib/zlib/GzipReader_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_wrap
path = File.join(tmpdir, "test.gz")
Zlib::GzipWriter.open(path) { _1.puts "hello" }

File.open(path) do |io|
File.open(path, "rb") do |io|
assert_send_type "(IO io) -> Zlib::GzipReader",
Zlib::GzipReader, :wrap, io

Expand Down
Loading