summaryrefslogtreecommitdiffstats
path: root/features/tagging.feature
blob: 649ff9bfe11bf7ffb1c5654579c1b702133dee3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Feature: Tagging

    Scenario: Displaying tags
        Given we use the config "tags.json"
        When we run "jrnl --tags"
        Then we should get no error
        and the output should be
            """
            @idea                : 2
            @journal             : 1
            @dan                 : 1
            """

    Scenario: Filtering journals should also filter tags
        Given we use the config "tags.json"
        When we run "jrnl -from 'may 2013' --tags"
        Then we should get no error
        and the output should be
            """
            @idea                : 1
            @dan                 : 1
            """

    Scenario: Tags should allow certain special characters
        Given we use the config "tags-216.json"
        When we run "jrnl --tags"
        Then we should get no error
        and the output should be
            """
            @os/2                : 1
            @c++                 : 1
            @c#                  : 1
            """
	Scenario:  An email should not be a tag
		Given we use the config "tags-237.json"
		When we run "jrnl --tags"
		Then we should get no error
		and the output should be
			"""
			@newline             : 1
			@email               : 1
			"""