Skip to content

Commit

Permalink
add simple test for the "table" list output
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Aug 22, 2016
1 parent 61fc22c commit 15db036
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion t/100basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cd $(dirname $0)
jira="../jira --project BASIC"
export JIRA_LOG_FORMAT="%{level:-5s} %{message}"

PLAN 84
PLAN 86

# reset login
RUNS $jira logout
Expand Down Expand Up @@ -52,6 +52,19 @@ DIFF <<EOF
$(printf %-12s $issue:) summary
EOF

###############################################################################
## List all issues, using the table template
###############################################################################

RUNS $jira ls --template table
DIFF <<EOF
+----------------+---------------------------------------------------------+--------------+--------------+------------+--------------+--------------+
| Issue | Summary | Priority | Status | Age | Reporter | Assignee |
+----------------+---------------------------------------------------------+--------------+--------------+------------+--------------+--------------+
| $(printf %-14s $issue) | summary | Medium | To Do | a minute | gojira | gojira |
+----------------+---------------------------------------------------------+--------------+--------------+------------+--------------+--------------+
EOF

###############################################################################
## Try to close the issue, bug Basic projects do not allow that state
###############################################################################
Expand Down

0 comments on commit 15db036

Please sign in to comment.