This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
forked from cucumber/aruba
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcopy.feature
45 lines (40 loc) · 1.49 KB
/
copy.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Feature: Copy file or directory
As a user of aruba
I want ot copy a file or a directory
To setup my tests
Background:
Given I use a fixture named "cli-app"
Scenario: Copy file
Given a file named "features/copy.feature" with:
"""
Feature: Copy
Scenario: Copy
Given an empty file named "file1.txt"
And an empty file named "file2.txt"
And an empty file named "file3.txt"
When I copy a file named "file1.txt" to "new_file1.txt"
When I copy a file from "file2.txt" to "new_file2.txt"
When I copy the file "file3.txt" to "new_file3.txt"
Then a file named "new_file1.txt" should exist
Then a file named "new_file2.txt" should exist
Then a file named "new_file3.txt" should exist
"""
When I run `cucumber`
Then the features should all pass
Scenario: Copy directory
Given a file named "features/copy.feature" with:
"""
Feature: Copy
Scenario: Copy
Given a directory named "dir1.d"
And a directory named "dir2.d"
And a directory named "dir3.d"
When I copy a directory named "dir1.d" to "new_dir1.d"
When I copy a directory from "dir2.d" to "new_dir2.d"
When I copy the directory "dir3.d" to "new_dir3.d"
Then a directory named "new_dir1.d" should exist
Then a directory named "new_dir2.d" should exist
Then a directory named "new_dir3.d" should exist
"""
When I run `cucumber`
Then the features should all pass