Sha256: 4cb732b6e2f9c51084cea103d03b8eeb5c9ec742f1af0196865f9745cbeda4c5
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
require 'helper' class TestPermissionMethods < FunWith::Files::TestCase context "checking for availability of permission methods" do setup do @filepath = FunWith::Files::FilePath.new("/") end should "have permission methods" do assert_respond_to @filepath, :readable? assert_respond_to @filepath, :writable? assert_respond_to @filepath, :executable? assert_respond_to @filepath, :chown assert_respond_to @filepath, :chmod assert_respond_to @filepath, :owner end should "have a root owner" do assert_equal "root", @filepath.owner end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fun_with_files-0.0.18 | ./test/test_permission_methods.rb |