mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 00:58:31 +02:00
Upgrade poetry if already installed Get rid of test function that was causing windows problems
29 lines
1 KiB
Gherkin
29 lines
1 KiB
Gherkin
Feature: Contains
|
|
|
|
Scenario: Searching for a string
|
|
Given we use the config "basic.yaml"
|
|
When we run "jrnl -contains life"
|
|
Then we should get no error
|
|
and the output should be
|
|
"""
|
|
2013-06-10 15:40 Life is good.
|
|
| But I'm better.
|
|
"""
|
|
|
|
Scenario: Searching for a string within tag results
|
|
Given we use the config "tags.yaml"
|
|
When we run "jrnl @idea -contains software"
|
|
Then we should get no error
|
|
And the output should contain "software"
|
|
|
|
Scenario: Searching for a string within AND tag results
|
|
Given we use the config "tags.yaml"
|
|
When we run "jrnl -and @journal @idea -contains software"
|
|
Then we should get no error
|
|
and the output should contain "software"
|
|
|
|
Scenario: Searching for a string within NOT tag results
|
|
Given we use the config "tags.yaml"
|
|
When we run "jrnl -not @dan -contains software"
|
|
Then we should get no error
|
|
and the output should contain "software"
|