features/copy.feature in revenc-0.1.3 vs features/copy.feature in revenc-0.2.1

- old
+ new

@@ -4,39 +4,42 @@ As an interactive user or automated script The program should copy the encrypted data to another location And lock the process to prevent automated recursion on long running copy commands In order to backup the data and allow recovery of the unencrypted data - Scenario: Sucessful copy + Scenario: Successful copy with non-default ERB copy cmd Given a directory named "encrypted_source_folder" Given a directory named "encrypted_destination" Given an empty file named "encrypted_source_folder/test_data1.txt" Given an empty file named "encrypted_source_folder/test_data2.txt" Given a file named "revenc.conf" with: """ mount: mountpoint: name: encrypted_source_folder + copy: + executable: cp + cmd: <%= executable %> -r <%= source.name %> <%= destination.name %> """ - When I run "revenc copy encrypted_source_folder encrypted_destination" + When I run `revenc copy encrypted_source_folder encrypted_destination` Then the exit status should be 0 And the following files should exist: | encrypted_destination/encrypted_source_folder/test_data1.txt | | encrypted_destination/encrypted_source_folder/test_data2.txt | - Scenario: Sucessful copy dry run + Scenario: Successful copy dry run Given a directory named "encrypted_source_folder" Given a directory named "encrypted_destination" Given an empty file named "encrypted_source_folder/test_data1.txt" Given an empty file named "encrypted_source_folder/test_data2.txt" Given a file named "revenc.conf" with: """ mount: mountpoint: name: encrypted_source_folder """ - When I run "revenc copy --dry-run encrypted_source_folder encrypted_destination" + When I run `revenc copy --dry-run encrypted_source_folder encrypted_destination` Then the exit status should be 0 And the following files should not exist: | encrypted_destination/encrypted_source_folder/test_data1.txt | | encrypted_destination/encrypted_source_folder/test_data2.txt | @@ -56,36 +59,36 @@ """ action failed, lock file present """ Scenario: Source folder not specified - When I run "revenc copy" + When I run `revenc copy` Then the exit status should be 1 And the output should contain: """ source folder not specified """ Scenario: Destination not specified - When I run "revenc copy encrypted_source_folder" + When I run `revenc copy encrypted_source_folder` Then the exit status should be 1 And the output should contain: """ destination not specified """ Scenario: Source folder doesn't exist - When I run "revenc copy encrypted_source_folder encrypted_destination" + When I run `revenc copy encrypted_source_folder encrypted_destination` Then the exit status should be 1 And the output should contain: """ source folder not found """ Scenario: Source folder is empty Given a directory named "encrypted_source_folder" - When I run "revenc copy encrypted_source_folder encrypted_destination" + When I run `revenc copy encrypted_source_folder encrypted_destination` Then the exit status should be 1 And the output should contain: """ source folder is empty """ @@ -104,11 +107,11 @@ source: name: parent_folder destination: name: copy_to_destination """ - When I run "revenc copy --verbose --dry-run" + When I run `revenc copy --verbose --dry-run` Then the output should contain: """ mountpoint is empty """ @@ -125,11 +128,11 @@ source: name: parent_folder destination: name: copy_to_destination """ - When I run "revenc copy --verbose --dry-run" + When I run `revenc copy --verbose --dry-run` Then the output should contain: """ mountpoint not found """ @@ -143,11 +146,11 @@ source: name: parent_folder destination: name: copy_to_destination """ - When I run "revenc copy --verbose --dry-run" + When I run `revenc copy --verbose --dry-run` Then the output should not contain: """ mountpoint not found """ And the output should not contain: @@ -159,10 +162,10 @@ Given a file named "revenc.conf" with: """ copy: executable: missing_bin_file """ - When I run "revenc copy encrypted_source_folder encrypted_destination" + When I run `revenc copy encrypted_source_folder encrypted_destination` Then the exit status should be 1 And the output should contain: """ executable not found """