Sha256: 31bece43d3ae5ee80b0cc2f57a5c27e88225a3272059782ac4ca92769b93d696
Contents?: true
Size: 448 Bytes
Versions: 90
Compression:
Stored size: 448 Bytes
Contents
require 'test_helper' module __App__ class ExampleTest < MiniTest::Test include CLI::Kit::Support::TestHelper def test_example CLI::Kit::System.fake("ls -al", stdout: "a\nb", success: true) out, = CLI::Kit::System.capture2('ls', '-al') assert_equal %w(a b), out.split("\n") errors = assert_all_commands_run(should_raise: false) assert_nil errors, "expected command to run successfully" end end end
Version data entries
90 entries across 90 versions & 2 rubygems