Sha256: dc52574fc97fb7e4491cf0a996e4a756483f0b74fe9d36683ec1f3df5ac39c7c
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
Feature: Touch a file Scenario: Touch a file When I run the following Ruby code: """ruby require 'sugar_utils' puts SugarUtils::File.touch('dir/test') """ Then the file named "dir/test" should exist # TODO: Fix the owner/group setting check Scenario: Touch a file and reset its permissions and mtime When I run the following Ruby code: """ruby require 'sugar_utils' puts SugarUtils::File.touch( 'dir/test', # owner: 'nobody', # group: 'nogroup', mode: 0o777, mtime: 0 ) """ Then the file named "dir/test" should exist And the file named "dir/test" should have permissions "777" And the file named "dir/test" should have modification time "0" # And the file named "dir/test" should have owner "nobody" # And the file named "dir/test" should have group "nogroup"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sugar_utils-0.8.0 | features/touch_file.feature |
sugar_utils-0.7.0 | features/touch_file.feature |
sugar_utils-0.6.0 | features/touch_file.feature |