coffeescript-support/templates/SpecHelper.js

13 lines
256 B
JavaScript
Raw Normal View History

beforeEach(function() {
this.addMatchers({
toHaveSomething: function() {
var summary = this.actual;
this.actual = summary.clone().wrap('<div>').parent().html();
// Magical matcher work goes here.
return false;
},
});