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_directory.feature
57 lines (45 loc) · 1.57 KB
/
create_directory.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
Feature: Create Directory
As a user of aruba
I want to create directories
Background:
Given I use a fixture named "cli-app"
Scenario: Non-existing directory
Given a file named "features/create_directory.feature" with:
"""
Feature: Create directory
Background:
Given a directory named "dir1"
Scenario: Create directory #1
Then a directory named "dir1" should exist
Scenario: Create directory #2
Then a directory named "dir1" should exist
Scenario: Create directory #3
Then a directory named "dir1" should exist
Scenario: Create directory #4
Then a directory named "dir1" should exist
Scenario: Create directory #5
Then a directory named "dir1" should exist
"""
When I run `cucumber`
Then the features should all pass
Scenario: Existing directory
It doesn't matter if a directory already exist.
Given a file named "features/create_directory.feature" with:
"""
Feature: Create directory
Scenario: Create directory
Given a directory named "dir1"
And a directory named "dir1"
"""
When I run `cucumber`
Then the features should all pass
Scenario: Change mode a long with creation of directory
Given a file named "features/create_directory.feature" with:
"""
Feature: Create directory
Scenario: Create directory
Given a directory named "dir1" with mode "0644"
Then the directory named "dir1" should have permissions "0644"
"""
When I run `cucumber`
Then the features should all pass