-
-module Test
- module Unit
- module Assertions
- def assert_run_successful(cmd, msg = nil)
- `#{cmd}`
- st = $?.exitstatus
-
- message = build_message(msg, <<EOT, st)
-Program failed with code <?>.
-EOT
- assert_block(message) { st == 0 }
- end
- end
- end
-end