Skip to content
Browse files

improve output of assertEqualList

  • Loading branch information...
1 parent 7c0b96e commit dd97a5cec72f6575223e4efddfcc023a26ab0bd0 @mislav mislav committed Dec 24, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/ajax.html
View
8 test/ajax.html
@@ -34,12 +34,12 @@
}
Evidence.Assertions.assertEqualList = function(expected, actual, message) {
- var expectedList = toArray(expected).join(' '),
- actualList = toArray(actual).join(' ')
+ var expectedList = toArray(expected),
+ actualList = toArray(actual)
this._assertExpression(
- expectedList == actualList,
- message || 'Failed assertion.',
+ expectedList.join(' ') == actualList.join(' '),
+ message || "Lists don't match.",
'Expected %o, got %o.', expectedList, actualList
)
}

0 comments on commit dd97a5c

Please sign in to comment.
Something went wrong with that request. Please try again.