mirror of https://github.com/nmasse-itix/liche.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
928 B
36 lines
928 B
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"
|
|
|