Sha256: 6508101e7a56dc9d5341d2630164db9c3121018dcbec63f531b374c29bc78299

Contents?: true

Size: 1.09 KB

Versions: 20

Compression:

Stored size: 1.09 KB

Contents

Feature: Check permissions of file

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

  Scenario: Check mode of existing file
    Given a file named "features/create_file.feature" with:
    """
    Feature: Check
      Background:
        Given an empty file named "file1.txt" with mode "0644"

      Scenario: Check #1
        Then the file named "file1.txt" should have permissions "0644"

      Scenario: Check #2
        Then a file "file1.txt" should have permissions "0644"

      Scenario: Check #3
        Then a file "file1.txt" should not have permissions "0444"

      Scenario: Check #4
        Then the file "file1.txt" should not have permissions "0444"
    """
    When I run `cucumber`
    Then the features should all pass

  Scenario: Check mode of non-existing file
    Given a file named "features/create_file.feature" with:
    """
    Feature: Check
      Background:
        Given a file named "file1.txt" does not exist

      Scenario: Check 
        Then the file named "file1.txt" should have permissions "0644"
    """
    When I run `cucumber`
    Then the features should not pass

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
aruba-0.14.14 features/03_testing_frameworks/cucumber/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.13 features/03_testing_frameworks/cucumber/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.12 features/03_testing_frameworks/cucumber/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.11 features/03_testing_frameworks/cucumber/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.10 features/03_testing_frameworks/cucumber/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.9 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.8 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.7 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.6 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.5 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.4 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.3 features/steps/filesystem/check_permissions_of_file.feature
aruba-win-fix-0.14.2 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.2 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.1 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.14.0 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.13.0 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.12.0 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.11.2 features/steps/filesystem/check_permissions_of_file.feature
aruba-0.11.1 features/steps/filesystem/check_permissions_of_file.feature