Sha256: 2d0b8a55c7911f489726912627aaca05112e96d93db0b12063a974e2957b082e

Contents?: true

Size: 918 Bytes

Versions: 2

Compression:

Stored size: 918 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*"
    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

2 entries across 2 versions & 1 rubygems

Version Path
oct-0.2.0 features/oct.feature
oct-0.1.0 features/oct.feature