Sha256: 3f3741f99a3d0495b6a9fa9cae6b6580fbbd1f33892ad904f0d44b8f498ed5d7
Contents?: true
Size: 611 Bytes
Versions: 4
Compression:
Stored size: 611 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class MiltonTest < ActiveSupport::TestCase context "running a syscall" do should "return false on failure" do assert !Milton.syscall('ls this_directory_definitely_doesnt_exist') end should "return output on success" do assert_equal "foo\n", Milton.syscall("echo foo") end end context "running a syscall!" do should "raise a Milton::SyscallFailedError if it fails" do assert_raise Milton::SyscallFailedError do Milton.syscall!('ls this_directory_definitely_doesnt_exist') end end end end
Version data entries
4 entries across 4 versions & 2 rubygems