1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
Feature: Compare files
Background:
Given I use a fixture named "cli-app"
Scenario: Compare existing files
Given a file named "features/non-existence.feature" with:
"""
Feature: Existence
Scenario: Existence
Given a file named "foo" with:
\"\"\"
hello world
\"\"\"
And a file named "bar" with:
\"\"\"
hello world
\"\"\"
And a file named "nonbar" with:
\"\"\"
hello another world
\"\"\"
Then the file "foo" should be equal to file "bar"
And the file "foo" should not be equal to file "nonbar"
"""
When I run `cucumber`
Then the features should all pass
Scenario: Compare non-existing files
Given a file named "features/non-existence.feature" with:
"""
Feature: Existence
Scenario: Existence
Given a file named "foo" with:
\"\"\"
hello world
\"\"\"
Then the file "foo" should be equal to file "bar"
"""
When I run `cucumber`
Then the features should not pass
|