lib/spoom/test_helpers/project.rb in spoom-1.1.9 vs lib/spoom/test_helpers/project.rb in spoom-1.1.10

- old
+ new

@@ -57,9 +57,15 @@ sig { returns(T::Array[String]) } def files Dir.glob("#{@path}/**/*").sort end + # Return the content of the file at `rel_path` + sig { params(rel_path: String).returns(String) } + def read(rel_path) + File.read(absolute_path(rel_path)) + end + # Actions # Run `git init` in this project sig { params(branch: String).void } def git_init(branch: "main")