-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify feature file organization #602
Changes from all commits
f33db3c
3f88867
37c6132
c2a335c
4951971
fe3cfc7
2c64cca
4a921a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,63 @@ 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: | ||
\"\"\" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these escaped because were inside a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that is the reason. It's a little ugly 😞. |
||
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 | ||
|
||
Scenario: Existing file having content | ||
Given a file named "features/file_content.feature" with: | ||
""" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,3 @@ Feature: Move file or directory | |
""" | ||
When I run `cucumber` | ||
Then the features should all pass | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this file called non-existence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. I copied this feature from master I think.