Sha256: 8ca77c011eaa970921c1e2368d3c20dba44018ef147517e27da882597371d54e
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
citrusbyte-milton-0.3.1 | test/milton/milton_test.rb |
citrusbyte-milton-0.3.2 | test/milton/milton_test.rb |