Sha256: 5e23cb228c863eb376a8cdb03b331cdaba28a60904e85a5476595ecb80f1c75c
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
Feature: Change a files ownership and permissions # TODO: Fix the owner/group setting check. I need to figure out how to execute # these scenarios correctly across various environments. Scenario: All the values are skipped Given a file named "test" with "foobar" When I run the following Ruby code: """ruby require 'sugar_utils' SugarUtils::File.change_access('test', nil, nil, nil) """ # Then the file named "test" should have permissions "644" # And the file named "test" should have owner "nobody" # And the file named "test" should have group "nogroup" Scenario: All the values are set Given a file named "test" with "foobar" When I run the following Ruby code: """ruby require 'sugar_utils' # SugarUtils::File.change_access('test', 'nobody', 'nogroup', 0o777) SugarUtils::File.change_access('test', nil, nil, 0o777) """ Then the file named "test" should have permissions "777" # And the file named "test" should have owner "nobody" # And the file named "test" should have group "nogroup"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sugar_utils-0.8.0 | features/change_file_access.feature |
sugar_utils-0.7.0 | features/change_file_access.feature |
sugar_utils-0.6.0 | features/change_file_access.feature |