Skip to content
Merged
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
12 changes: 12 additions & 0 deletions test/stdlib/Pathname_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def test_pwd
end

def test_initialize
omit "Pathname is developing in head" if RUBY_VERSION >= '3.5'

assert_send_type '(String) -> Pathname',
Pathname, :new, 'foo'
assert_send_type '(ToStr) -> Pathname',
Expand All @@ -43,6 +45,8 @@ class PathnameInstanceTest < Test::Unit::TestCase
testing '::Pathname'

def test_plus
omit "Pathname is developing in head" if RUBY_VERSION >= '3.5'

assert_send_type '(Pathname) -> Pathname',
Pathname('foo'), :+, Pathname('bar')
assert_send_type '(String) -> Pathname',
Expand All @@ -52,6 +56,8 @@ def test_plus
end

def test_slash
omit "Pathname is developing in head" if RUBY_VERSION >= '3.5'

assert_send_type '(Pathname) -> Pathname',
Pathname('foo'), :/, Pathname('bar')
assert_send_type '(String) -> Pathname',
Expand Down Expand Up @@ -380,6 +386,8 @@ def test_inspect
end

def test_join
omit "Pathname is developing in head" if RUBY_VERSION >= '3.5'

assert_send_type '() -> Pathname',
Pathname('.'), :join
assert_send_type '(String) -> Pathname',
Expand Down Expand Up @@ -602,6 +610,8 @@ def test_relative?
end

def test_relative_path_from
omit "Pathname is developing in head" if RUBY_VERSION >= '3.5'

assert_send_type '(Pathname) -> Pathname',
Pathname('.'), :relative_path_from, Pathname('.')
assert_send_type '(String) -> Pathname',
Expand Down Expand Up @@ -824,6 +834,8 @@ class PathnameKernelTest < Test::Unit::TestCase
testing '::Kernel'

def test_Pathname
omit "Pathname is developing in head" if RUBY_VERSION >= '3.5'

with_string("Gemfile") do
assert_send_type(
"(::string) -> ::Pathname",
Expand Down
Loading