Sha256: 43655ce6c44ef6e30ed6a4d0bc03bf81bed1b81e56e94c4a4dccb8edf41c92ac
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 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) assert_all_commands_run do out, = CLI::Kit::System.capture2('ls', '-al') assert_equal ['a', 'b'], out.split("\n") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-kit-3.0.1 | gen/template/test/example_test.rb |