Logo: Relish

  1. Sign in

Project: Aruba 0.11.0

Remove a file

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

Last published about 5 years ago by Max Meyer.