Files
news.gitea.happylizard.me/bin/gems/facets-3.1.0/test/standard/pathname/test_readline.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

24 lines
314 B
Ruby

require 'pathname'
covers 'facets/pathname/readline'
test_case Pathname do
method :readline do
setup do
@test_file = Pathname.new('tmp/test_file')
File.open(@test_file, "w") { |f| f << "line1\nline2" }
end
test do
@test_file.readline.assert == "line1\n"
end
end
end