Permalink
Browse files

Added assertion.name to fail messages

  • Loading branch information...
1 parent ab4a8d1 commit 5d824e982e30c5a60b9c14047ea62be0437d1b2c Alex Young committed Oct 23, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 riot.js
View
@@ -293,7 +293,7 @@ Riot.Assertion.prototype = {
},
fail: function(message) {
- throw(new Riot.AssertionFailure(message));
+ throw(new Riot.AssertionFailure(this.name + ': ' + message));
},
expected: function() {

0 comments on commit 5d824e9

Please sign in to comment.