File: create_directory.feature

package info (click to toggle)
ruby-aruba 0.14.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,216 kB
  • sloc: ruby: 7,951; sh: 21; makefile: 12
file content (57 lines) | stat: -rw-r--r-- 1,608 bytes parent folder | download | duplicates (5)
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