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
/
create_file.feature
76 lines (68 loc) · 2.12 KB
/
create_file.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Feature: Create new File
As a user of aruba
I want to create files
Background:
Given I use a fixture named "cli-app"
Scenario: Create empty file
Given a file named "features/create_file.feature" with:
"""
Feature: Create file
Scenario: Create file
Given an empty file named "file1.txt"
Then a file named "file1.txt" should exist
"""
When I run `cucumber`
Then the features should all pass
Scenario: Create file with content
Given a file named "features/create_file.feature" with:
"""
Feature: Create file
Scenario: Create file
Given a file named "file1.txt" with:
\"\"\"
Hello World
\"\"\"
Then the file named "file1.txt" should contain:
\"\"\"
Hello World
\"\"\"
"""
When I run `cucumber`
Then the features should all pass
Scenario: Change mode a long with creation of a file with content
Given a file named "features/create_file.feature" with:
"""
Feature: Create file
Scenario: Create file
Given a file named "file1.txt" with mode "0644" and with:
\"\"\"
Hello World
\"\"\"
Then the file named "file1.txt" should have permissions "0644"
And the file named "file1.txt" should contain:
\"\"\"
Hello World
\"\"\"
"""
When I run `cucumber`
Then the features should all pass
Scenario: Change mode a long with creation of empty file
Given a file named "features/create_file.feature" with:
"""
Feature: Create file
Scenario: Create file
Given an empty file named "file1.txt" with mode "0644"
Then the file named "file1.txt" should have permissions "0644"
"""
When I run `cucumber`
Then the features should all pass
Scenario: Create a fixed sized file
Given a file named "features/non-existence.feature" with:
"""
Feature: Create file
Scenario: Create file
Given a 1048576 byte file named "test.txt"
Then a 1048576 byte file named "test.txt" should exist
"""
When I run `cucumber`
Then the features should all pass