Sha256: a921f209ee03d43fedb1c47c5ad3960eb9ae9b8654b1d7e347cc1c583053b4ee

Contents?: true

Size: 1.56 KB

Versions: 15

Compression:

Stored size: 1.56 KB

Contents

Feature: Check file content

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

  Scenario: Check file contents with plain text
    Given a file named "features/non-existence.feature" with:
    """
    Feature: Check
      Scenario: Check
        Given a file named "foo" with:
        \"\"\"
        hello world
        \"\"\"
        Then the file "foo" should contain "hello world"
        And the file "foo" should not contain "HELLO WORLD"
    """
    When I run `cucumber`
    Then the features should all pass

  Scenario: Check file contents with regular expression
    Given a file named "features/non-existence.feature" with:
    """
    Feature: Check
      Background:
        Given a file named "foo" with:
        \"\"\"
        hello world
        \"\"\"

      Scenario: Check #1
        Then the file "foo" should match /hel.o world/
        And the file "foo" should not match /HELLO WORLD/

      Scenario: Check #2
        Then the file "foo" should match %r<hel.o world>
        And the file "foo" should not match %r<HELLO WORLD>
    """
    When I run `cucumber`
    Then the features should all pass

  Scenario:  Check file contents with cucumber doc string
    Given a file named "features/non-existence.feature" with:
    """
    Feature: Existence
      Scenario: Existence
        Given a file named "foo" with:
        \"\"\"
        foo
        bar
        baz
        foobar
        \"\"\"
        Then the file "foo" should contain:
        \"\"\"
        bar
        baz
        \"\"\"
        """
    When I run `cucumber`
    Then the features should all pass

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
aruba-0.14.9 features/steps/filesystem/check_file_content.feature
aruba-0.14.8 features/steps/filesystem/check_file_content.feature
aruba-0.14.7 features/steps/filesystem/check_file_content.feature
aruba-0.14.6 features/steps/filesystem/check_file_content.feature
aruba-0.14.5 features/steps/filesystem/check_file_content.feature
aruba-0.14.4 features/steps/filesystem/check_file_content.feature
aruba-0.14.3 features/steps/filesystem/check_file_content.feature
aruba-win-fix-0.14.2 features/steps/filesystem/check_file_content.feature
aruba-0.14.2 features/steps/filesystem/check_file_content.feature
aruba-0.14.1 features/steps/filesystem/check_file_content.feature
aruba-0.14.0 features/steps/filesystem/check_file_content.feature
aruba-0.13.0 features/steps/filesystem/check_file_content.feature
aruba-0.12.0 features/steps/filesystem/check_file_content.feature
aruba-0.11.2 features/steps/filesystem/check_file_content.feature
aruba-0.11.1 features/steps/filesystem/check_file_content.feature