mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
- Move more tests around - Rename some test files - Disable one test (markdown-355) Not sure why it's now failing. We should come back to this. - Add more placeholder test scenarios (marked with @todo) You can run just these tests with `behave --no-skipped --tags=todo` - Fix "missing_directory" test This test was missing the config file it was trying to use. So, it was really a very useless, broken test that we absolutely should not have approved the PR (#963) for.
24 lines
895 B
Gherkin
24 lines
895 B
Gherkin
Feature: Reading & writing the config file
|
|
|
|
Scenario: Sending an argument with spaces to the editor should work
|
|
Given we use the config "editor-args.yaml"
|
|
When we open the editor and enter "lorem ipsum"
|
|
Then the editor should have been called with 5 arguments
|
|
And one editor argument should be "vim"
|
|
And one editor argument should be "-f"
|
|
And one editor argument should be "-c"
|
|
And one editor argument should match "'?setf markdown'?"
|
|
|
|
Scenario: Invalid color configuration
|
|
Given we use the config "invalid_color.yaml"
|
|
When we run "jrnl -on 2013-06-10 -s"
|
|
Then the output should be
|
|
"""
|
|
2013-06-10 15:40 Life is good.
|
|
"""
|
|
And we should get no error
|
|
And the error output should contain
|
|
"""
|
|
body set to invalid color
|
|
"""
|
|
|