features/file_system_commands.feature in aruba-jbb-0.2.6 vs features/file_system_commands.feature in aruba-jbb-0.2.6.2
- old
+ new
@@ -70,12 +70,12 @@
Scenario: Check for presence of a subset of directories
Given I do have a directory named "foo/bar"
And I do have a directory named "foo/bla"
Then the following directories should exist:
- | foo/bar |
- | foo/bla |
+ | foo/bar |
+ | foo/bla |
Scenario: Cross-check for absence and presence of directories and files
Given I do have a directory named "bar/foo"
And I do have an empty file named "sna/fu"
@@ -90,12 +90,22 @@
| sna/fu |
And the following files should not exist:
| bar/foo |
| bar/ten |
- | foo/one |
+ | foo/one |
+ Scenario: check for absence of directories
+ Given I do have a directory named "foo/bar"
+ And i do have a directory named "foo/bla"
+ Then the following step should fail with Spec::Expectations::ExpectationNotMetError:
+ """
+ Then the following directories should not exist:
+ | foo/bar/ |
+ | foo/bla/ |
+ """
+
Scenario: Check file contents
Given I do have a file named "foo" with:
"""
hello world
Hi there
@@ -105,11 +115,11 @@
"""
hello world
Hi there
"""
Then the file "foo" should not contain "HELLO WORLD"
- And the file "foo" should not contain:
+ And the file "foo" should not contain:
"""
HELLO WORLD
"""
Scenario: @aruba-tmpdir flag runs scenario in tmp/aruba
@@ -126,19 +136,28 @@
Given the rebase-test before block conditions
When I cd to "../../testdata"
Then the clean_up api method should fail
And output should match /outside the tmp subtree and may not be deleted/
-
@rebase-test @aruba-tmpdir @announce
Scenario: @rebase-test tag creates soft links in aruba working directory
Given the rebase-test before block conditions
Then the soft links should exist in the aruba working directory
-
@rebase-test @aruba-tmpdir @announce
Scenario: rebase api creats soft links in aruba working directory
Given the rebase-test before block conditions
And I create the cwd sub-directory named "rebase_test"
When I rebase the directory named "rebase_test"
Then "rebase_test" should have a soft link in the aruba working directory
And I delete the cwd sub-directory named "rebase_test"
+
+
+ Scenario: Check file contents with regex
+ Given we do have a file named "foo" with:
+ """
+ hello world
+ """
+ Then the file "foo" should match /hel.o world/
+ And the file "foo" should not match /HELLO WORLD/
+
+