diff --git a/spec/helpers/mock_project.rb b/spec/helpers/mock_project.rb index f1647f83d..36fa07db8 100644 --- a/spec/helpers/mock_project.rb +++ b/spec/helpers/mock_project.rb @@ -66,9 +66,22 @@ def reset_bundler_version end class ExecResult < T::Struct + extend T::Sig + const :out, String const :err, String const :status, T::Boolean + + sig { returns(String) } + def to_s + <<~STR + ########## STDOUT ########## + #{out.empty? ? "" : out} + ########## STDERR ########## + #{err.empty? ? "" : err} + ########## STATUS: #{status} ########## + STR + end end # Run `bundle install` in this project context (unbundled env)