Logo: Relish

  1. Sign in

Project: Aruba 0.9.0

Create Directory

As a user of aruba
I want to create directories

Background
Given
I use a fixture named "cli-app"
Scenarios
Non-existing directory
Given
a file named "features/create_directory.feature" with:
Feature: Create directory
  Scenario: Create directory
    Given a directory named "dir1"
    Given the directory "dir2"
    Given the directory named "dir3"
    Then a directory named "dir1" should exist
    And a directory named "dir2" should exist
    And a directory named "dir3" should exist
When
I run cucumber
Then
the features should all pass
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
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

Last published over 7 years ago by Max Meyer.