Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix negative expectation in failure message

  • Loading branch information...
commit 7ca4c5252db8542eda748793725be8d4f317a234 1 parent 548cc04
@kana authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 autoload/vspec.vim
View
7 autoload/vspec.vim
@@ -240,7 +240,12 @@ function! vspec#test(specfile_path) "{{{2
\ suite.subject,
\ example
\ )
- echo '# Expected' i.expr_actual i.expr_matcher i.expr_expected
+ echo '# Expected' join(filter([
+ \ i.expr_actual,
+ \ i.expr_not,
+ \ i.expr_matcher,
+ \ i.expr_expected,
+ \ ], 'v:val != ""'))
for line in s:generate_failure_message(i)
echo '# ' . line
endfor
Please sign in to comment.
Something went wrong with that request. Please try again.