Sha256: 9b10a4f3a92438ec285194e517604ce0fa5542296c6243206856cf547c63f287

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

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 "spec/acceptance/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 `rspec`
    Then the features should all pass

  Scenario: Existing directory

    It doesn't matter if a directory already exist.

    Given a file named "spec/acceptance/create_directory.feature" with:
    """
    Feature: Create directory
      Scenario: Create directory
        Given a directory named "dir1"
        And a directory named "dir1"
    """
    When I run `rspec`
    Then the features should all pass

  Scenario: Change mode along with creation of directory
    Given a file named "spec/acceptance/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 `rspec`
    Then the features should all pass

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aruba-turnip-0.1.1 spec/acceptance/testing_frameworks/turnip/steps/filesystem/create_directory.feature
aruba-turnip-0.1.0 spec/acceptance/testing_frameworks/turnip/steps/filesystem/create_directory.feature