Sha256: f146167c83da0b7e694d0fe8c1c151f49d878fc630c0702327e53b582ebf68ca

Contents?: true

Size: 921 Bytes

Versions: 3

Compression:

Stored size: 921 Bytes

Contents

@announce
Feature: Octal file listing

  As an interactive user or automated script
  The application should accept a list of files on the command line
  and return a sorted listing of files with octal file permissions
  because working with chmod is easier in octal

  Background: A bunch of files
    Given an empty file named "file2.txt"
    And file "file2.txt" is chmod 0644
    Given an empty file named "file1.txt"
    And file "file1.txt" is chmod 0644

  Scenario: No files on the command line
    When I run `oct`
    Then the exit status should be 0
    And the output should contain:
      """
      0644 file1.txt
      0644 file2.txt
      """

  Scenario: Files on the command line
    When I run `oct file1.txt`
    Then the exit status should be 0
    And the output should contain:
      """
      0644 file1.txt
      """
    And the output should not contain:
      """
      0644 file2.txt
      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oct-0.3.3 features/oct.feature
oct-0.3.2 features/oct.feature
oct-0.3.1 features/oct.feature