Sha256: 782deb6035eb4fe13134aa99acf632b9c952cde9d32528cc3ebd2fabe9051d6e

Contents?: true

Size: 1.49 KB

Versions: 31

Compression:

Stored size: 1.49 KB

Contents

Feature: Copy file or directory

  As a user of aruba
  I want ot copy a file or a directory
  To setup my tests

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

  Scenario: Copy file
    Given a file named "features/copy.feature" with:
    """
    Feature: Copy
      Scenario: Copy
        Given an empty file named "file1.txt"
        And an empty file named "file2.txt"
        And an empty file named "file3.txt"
        When I copy a file named "file1.txt" to "new_file1.txt"
        When I copy a file from "file2.txt" to "new_file2.txt"
        When I copy the file "file3.txt" to "new_file3.txt"
        Then a file named "new_file1.txt" should exist
        Then a file named "new_file2.txt" should exist
        Then a file named "new_file3.txt" should exist
    """
    When I run `cucumber`
    Then the features should all pass

  Scenario: Copy directory
    Given a file named "features/copy.feature" with:
    """
    Feature: Copy
      Scenario: Copy
        Given a directory named "dir1.d"
        And a directory named "dir2.d"
        And a directory named "dir3.d"
        When I copy a directory named "dir1.d" to "new_dir1.d"
        When I copy a directory from "dir2.d" to "new_dir2.d"
        When I copy the directory "dir3.d" to "new_dir3.d"
        Then a directory named "new_dir1.d" should exist
        Then a directory named "new_dir2.d" should exist
        Then a directory named "new_dir3.d" should exist
    """
    When I run `cucumber`
    Then the features should all pass

Version data entries

31 entries across 31 versions & 2 rubygems

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