mirror of https://github.com/nmasse-itix/liche.git
4 changed files with 62 additions and 8 deletions
@ -0,0 +1,36 @@ |
|||
Feature: Relative paths |
|||
Scenario: Check a markdown file |
|||
Given a file named "foo.md" with: |
|||
""" |
|||
[bar](bar.md) |
|||
""" |
|||
And a file named "bar.md" with "" |
|||
When I successfully run `liche -v foo.md` |
|||
Then the stderr should contain "OK" |
|||
|
|||
Scenario: Check a directory |
|||
Given a file named "foo.md" with: |
|||
""" |
|||
[bar](bar) |
|||
""" |
|||
And a directory named "bar" |
|||
When I successfully run `liche -v foo.md` |
|||
Then the stderr should contain "OK" |
|||
|
|||
Scenario: Check an image |
|||
Given a file named "foo.md" with: |
|||
""" |
|||
 |
|||
""" |
|||
And a file named "foo.png" with "" |
|||
When I successfully run `liche -v foo.md` |
|||
Then the stderr should contain "OK" |
|||
|
|||
Scenario: Check a non-existent markdown file |
|||
Given a file named "foo.md" with: |
|||
""" |
|||
[bar](bar.md) |
|||
""" |
|||
When I run `liche foo.md` |
|||
Then the exit status should be 1 |
|||
And the stderr should contain "ERROR" |
|||
Loading…
Reference in new issue