Sha256: c835ea042c29deab2a53c1fe6c6d7c0051de12201cbdbc7a94900b9a2e1cbcd5
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
Feature: Append to a file Scenario: Append a missing file When I run the following Ruby code: """ruby require 'sugar_utils' SugarUtils::File.append('dir/test', 'foobar') """ Then the file named "dir/test" should contain exactly: """ foobar """ Scenario: Append an existing file Given a file named "dir/test" with "foobar" When I run the following Ruby code: """ruby require 'sugar_utils' SugarUtils::File.append('dir/test', 'deadbeef') """ Then the file named "dir/test" should contain exactly: """ foobardeadbeef """ # TODO: Fix the owner/group setting check Scenario: Append a file and reset its permissions Given a file named "dir/test" with "foobar" When I run the following Ruby code: """ruby require 'sugar_utils' SugarUtils::File.append( 'dir/test', 'deadbeef', # owner: 'nobody', # group: 'nogroup', mode: 0o777 ) """ Then the file named "dir/test" should contain exactly: """ foobardeadbeef """ And the file named "dir/test" should have permissions "777" # 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/append_file.feature |
sugar_utils-0.7.0 | features/append_file.feature |
sugar_utils-0.6.0 | features/append_file.feature |