Logo: Relish

  1. Sign in

Project: Aruba

Remove a directory

Background
Given
I use a fixture named "cli-app"
Scenarios
Remove an existing directory
Given
a file named "features/non-existence.feature" with:
Feature: Remove
  Scenario: Remove
    Given an empty directory named "foo"
    When I remove the directory "foo"
    Then the directory "foo" should not exist
When
I run cucumber
Then
the features should all pass
Remove an non-existing directory
Given
a file named "features/non-existence.feature" with:
Feature: Remove
  Scenario: Remove
    When I remove the directory "foo"
    Then the directory "foo" should not exist
When
I run cucumber
Then
the features should not pass
Force remove an non-existing directory
Given
a file named "features/non-existence.feature" with:
Feature: Remove
  Scenario: Remove
    When I remove the directory "foo" with full force
    Then the directory "foo" should not exist
When
I run cucumber
Then
the features should all pass

Last published over 3 years ago by philoserf.