Skip to content

Commit

Permalink
Added assertion.name to fail messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Young committed Oct 23, 2009
1 parent ab4a8d1 commit 5d824e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riot.js
Expand Up @@ -293,7 +293,7 @@ Riot.Assertion.prototype = {
},

fail: function(message) {
throw(new Riot.AssertionFailure(message));
throw(new Riot.AssertionFailure(this.name + ': ' + message));
},

expected: function() {
Expand Down

0 comments on commit 5d824e9

Please sign in to comment.