-
-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #740 from empireshades/master
Full text search (case insensitive) with "-contains"
- Loading branch information
Showing
3 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters