Permalink
Browse files

Fix negative expectation in failure message

  • Loading branch information...
1 parent 548cc04 commit 7ca4c5252db8542eda748793725be8d4f317a234 @kana committed Oct 25, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 autoload/vspec.vim
View
@@ -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

0 comments on commit 7ca4c52

Please sign in to comment.