summaryrefslogtreecommitdiff
path: root/jt.md
diff options
context:
space:
mode:
Diffstat (limited to 'jt.md')
-rw-r--r--jt.md66
1 files changed, 33 insertions, 33 deletions
diff --git a/jt.md b/jt.md
index 9c561da..c32ea62 100644
--- a/jt.md
+++ b/jt.md
@@ -46,8 +46,8 @@ correctly.
~~~scenario
given an installed jt
-when I run jt2 config
-then stdout matches regex dirname:.*/\.local.share/jt2
+when I run jt config
+then stdout matches regex dirname:.*/\.local.share/jt
then stdout matches regex editor: "/usr/bin/editor"
~~~
@@ -55,7 +55,7 @@ then stdout matches regex editor: "/usr/bin/editor"
~~~scenario
given an installed jt
-when I try to run jt2 --config does-not-exist config
+when I try to run jt --config does-not-exist config
then command fails
then stderr contains "does-not-exist"
~~~
@@ -65,8 +65,8 @@ then stderr contains "does-not-exist"
~~~scenario
given an installed jt
given file empty.yaml
-when I run jt2 --config empty.yaml config
-then stdout matches regex dirname:.*/\.local.share/jt2
+when I run jt --config empty.yaml config
+then stdout matches regex dirname:.*/\.local.share/jt
then stdout matches regex editor: "/usr/bin/editor"
~~~
@@ -82,7 +82,7 @@ user's home directory.
~~~scenario
given an installed jt
given file config.yaml
-when I run jt2 --config config.yaml config
+when I run jt --config config.yaml config
then stdout matches regex dirname:.*/.*/journal
then stdout matches regex editor: "emacs"
~~~
@@ -97,7 +97,7 @@ editor: emacs
~~~scenario
given an installed jt
given file config.yaml
-when I run jt2 --config config.yaml --dirname xxx --editor yyy config
+when I run jt --config config.yaml --dirname xxx --editor yyy config
then stdout matches regex dirname: "xxx"
then stdout matches regex editor: "yyy"
~~~
@@ -109,7 +109,7 @@ then stdout matches regex editor: "yyy"
~~~scenario
given an installed jt
given file toomuch.yaml
-when I try to run jt2 --config toomuch.yaml config
+when I try to run jt --config toomuch.yaml config
then command fails
then stderr contains "unknown_field"
~~~
@@ -127,15 +127,15 @@ using the tool.
~~~scenario
given an installed jt
-when I run jt2 --dirname jrnl init default "My test journal"
+when I run jt --dirname jrnl init default "My test journal"
then command is successful
and directory jrnl exists
then there are no uncommitted changes in jrnl
-when I run jt2 --dirname jrnl is-journal
+when I run jt --dirname jrnl is-journal
then command is successful
-when I try to run jt2 --dirname bogus is-journal
+when I try to run jt --dirname bogus is-journal
then command fails
~~~
@@ -147,26 +147,26 @@ Verify that we can create a new draft entry for the journal.
~~~scenario
given an installed jt
-when I run jt2 --dirname jrnl init default "My test journal"
+when I run jt --dirname jrnl init default "My test journal"
then command is successful
and there are no drafts in jrnl
and there are no journal entries in jrnl
-when I run jt2 --editor=none --dirname=jrnl new "Abracadabra"
+when I run jt --editor=none --dirname=jrnl new "Abracadabra"
then command is successful
and there is one draft in jrnl
and draft 0 in jrnl contains "Abracadabra"
and draft 0 in jrnl contains "!meta date="
-when I run jt2 --dirname=jrnl list
+when I run jt --dirname=jrnl list
then stdout matches regex ^0 Abracadabra$
given an executable script append.sh
-when I run jt2 --editor=./append.sh --dirname=jrnl edit 0
+when I run jt --editor=./append.sh --dirname=jrnl edit 0
then command is successful
and draft 0 in jrnl contains "Open sesame!"
-when I run jt2 --dirname=jrnl finish 0 abra
+when I run jt --dirname=jrnl finish 0 abra
then command is successful
and there is one journal entry in jrnl, at FILE
and file name <FILE> ends with .mdwn
@@ -189,36 +189,36 @@ Verify that we can create two draft entries at the same time.
~~~scenario
given an installed jt
-when I run jt2 --dirname jrnl init default "My test journal"
+when I run jt --dirname jrnl init default "My test journal"
then command is successful
then there are no drafts in jrnl
then there are no journal entries in jrnl
-when I run jt2 --editor=none --dirname=jrnl new "Abracadabra"
+when I run jt --editor=none --dirname=jrnl new "Abracadabra"
then command is successful
then there is one draft in jrnl
then draft 0 in jrnl contains "Abracadabra"
-when I run jt2 --editor=none --dirname=jrnl new "Simsalabim"
+when I run jt --editor=none --dirname=jrnl new "Simsalabim"
then command is successful
then there are two drafts in jrnl
then draft 0 in jrnl contains "Abracadabra"
then draft 1 in jrnl contains "Simsalabim"
given an executable script append.sh
-when I run jt2 --editor=./append.sh --dirname=jrnl edit 0
+when I run jt --editor=./append.sh --dirname=jrnl edit 0
then draft 0 in jrnl contains "Open sesame!"
-when I run jt2 --editor=./append.sh --dirname=jrnl edit 1
+when I run jt --editor=./append.sh --dirname=jrnl edit 1
then draft 1 in jrnl contains "Open sesame!"
-when I run jt2 --dirname=jrnl finish 0 abra
+when I run jt --dirname=jrnl finish 0 abra
then command is successful
then there is one journal entry in jrnl, at FILE
then journal entry <FILE> contains "Abracadabra"
then journal entry <FILE> contains "Open sesame!"
then there is one draft in jrnl
-when I run jt2 --dirname=jrnl finish 1 sim
+when I run jt --dirname=jrnl finish 1 sim
then command is successful
then there are two journal entries in jrnl, at FILE1 and FILE2
then journal entry <FILE1> contains "Abracadabra"
@@ -238,23 +238,23 @@ Verify that we can remove a draft, and then create a new one.
~~~scenario
given an installed jt
-when I run jt2 --dirname jrnl init default "My test journal"
+when I run jt --dirname jrnl init default "My test journal"
then command is successful
and there are no drafts in jrnl
and there are no journal entries in jrnl
-when I run jt2 --editor=none --dirname=jrnl new "Hulabaloo"
+when I run jt --editor=none --dirname=jrnl new "Hulabaloo"
then command is successful
and there is one draft in jrnl
and draft 0 in jrnl contains "Hulabaloo"
and draft 0 in jrnl contains "!meta date="
-when I run jt2 --dirname=jrnl remove 0
+when I run jt --dirname=jrnl remove 0
then command is successful
and there are no drafts in jrnl
and there are no journal entries in jrnl
-when I run jt2 --editor=none --dirname=jrnl new "Abracadabra"
+when I run jt --editor=none --dirname=jrnl new "Abracadabra"
then command is successful
and there is one draft in jrnl
and draft 0 in jrnl contains "Abracadabra"
@@ -268,12 +268,12 @@ Verify that we can have a custom template for new journal entries.
~~~scenario
given an installed jt
-when I run jt2 --dirname jrnl init default "My test journal"
+when I run jt --dirname jrnl init default "My test journal"
then command is successful
given file jrnl/.config/templates/new_entry from new_entry_template
-when I run jt2 --editor=none --dirname=jrnl new "Abracadabra"
+when I run jt --editor=none --dirname=jrnl new "Abracadabra"
then command is successful
and there is one draft in jrnl
and draft 0 in jrnl contains "custom new entry template"
@@ -291,19 +291,19 @@ to that topic page.
~~~scenario
given an installed jt
-when I run jt2 --dirname jrnl init default "My test journal"
+when I run jt --dirname jrnl init default "My test journal"
then command is successful
-when I try to run jt2 --editor=none --dirname=jrnl new --topic foo "Abracadabra"
+when I try to run jt --editor=none --dirname=jrnl new --topic foo "Abracadabra"
then command fails
then stderr contains "foo"
-when I run jt2 --editor=none --dirname=jrnl new-topic foo "Things about Foo"
+when I run jt --editor=none --dirname=jrnl new-topic foo "Things about Foo"
then command is successful
then file jrnl/foo.mdwn contains "Things about Foo"
then there are no uncommitted changes in jrnl
-when I run jt2 --editor=none --dirname=jrnl new --topic foo "Abracadabra"
+when I run jt --editor=none --dirname=jrnl new --topic foo "Abracadabra"
then command is successful
and there is one draft in jrnl
and draft 0 in jrnl links to "foo"