Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Aug 2, 2015
1 parent cdde2bd commit 1e52478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ load test_helper
@test "--help" {
run $BATS_TEST_DIRNAME/../gh-md-toc --help
assert_success
assert_equal "${lines[0]}" "GitHub TOC generator (gh-md-toc): 0.4.4"
assert_equal "${lines[0]}" "GitHub TOC generator (gh-md-toc): 0.4.5"
assert_equal "${lines[1]}" "Usage:"
assert_equal "${lines[2]}" " gh-md-toc src [src] Create TOC for a README file (url or local path)"
assert_equal "${lines[3]}" " gh-md-toc - Create TOC for markdown from STDIN"
Expand All @@ -93,7 +93,7 @@ load test_helper
@test "no arguments" {
run $BATS_TEST_DIRNAME/../gh-md-toc
assert_success
assert_equal "${lines[0]}" "GitHub TOC generator (gh-md-toc): 0.4.4"
assert_equal "${lines[0]}" "GitHub TOC generator (gh-md-toc): 0.4.5"
assert_equal "${lines[1]}" "Usage:"
assert_equal "${lines[2]}" " gh-md-toc src [src] Create TOC for a README file (url or local path)"
assert_equal "${lines[3]}" " gh-md-toc - Create TOC for markdown from STDIN"
Expand All @@ -104,7 +104,7 @@ load test_helper
@test "--version" {
run $BATS_TEST_DIRNAME/../gh-md-toc --version
assert_success
assert_equal "${lines[0]}" "0.4.4"
assert_equal "${lines[0]}" "0.4.5"
}

@test "TOC for non-english chars, #6, #10" {
Expand Down

0 comments on commit 1e52478

Please sign in to comment.