Sha256: 86381879200def901eb0d621f80083485e3396806e76b1224bcc45569716e827

Contents?: true

Size: 1.4 KB

Versions: 11

Compression:

Stored size: 1.4 KB

Contents

Feature: Create new File

  As a user of aruba
  I want to create files

  Background:
    Given I use a fixture named "cli-app"

  Scenario: Create empty file
    Given a file named "features/create_file.feature" with:
    """
    Feature: Create file
      Scenario: Create file
        Given an empty file named "file1.txt"
        Then a file named "file1.txt" should exist
    """
    When I run `cucumber`
    Then the features should all pass

  Scenario: Create file with content
    Given a file named "features/create_file.feature" with:
    """
    Feature: Create file
      Scenario: Create file
        Given a file named "file1.txt" with:
        \"\"\"
        Hello World
        \"\"\"
        Then the file named "file1.txt" should contain:
        \"\"\"
        Hello World
        \"\"\"
    """
    When I run `cucumber`
    Then the features should all pass

  Scenario: Change mode a long with creation of file
    Given a file named "features/create_file.feature" with:
    """
    Feature: Create directory
      Scenario: Create directory
        Given a file named "file1.txt" with mode "0644" and with:
        \"\"\"
        Hello World
        \"\"\"
        Then the file named "file1.txt" should have permissions "0644"
        And the file named "file1.txt" should contain:
        \"\"\"
        Hello World
        \"\"\"
    """
    When I run `cucumber`
    Then the features should all pass

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aruba-0.11.0.pre4 features/steps/filesystem/create_file.feature
aruba-0.11.0.pre3 features/steps/filesystem/create_file.feature
aruba-0.11.0.pre2 features/steps/filesystem/create_file.feature
aruba-0.11.0.pre features/steps/filesystem/create_file.feature
aruba-0.10.2 features/steps/filesystem/create_file.feature
aruba-0.10.1 features/steps/filesystem/create_file.feature
aruba-0.10.0 features/steps/filesystem/create_file.feature
aruba-0.10.0.pre2 features/steps/filesystem/create_file.feature
aruba-0.10.0.pre features/steps/filesystem/create_file.feature
aruba-0.9.0 features/steps/filesystem/create_file.feature
aruba-0.9.0.pre2 features/steps/filesystem/create_file.feature