Skip to content

Commit

Permalink
fix spec BUG,让它终于可用
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed Jan 5, 2013
1 parent 7a5213e commit f4b7ddb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion more/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ define(["$lang"], function($) {
});
"ok, ng, log, eq, near, match, type, not, property, contains, same".replace($.rword, function(method) {
Expect.prototype[method] = function() {
return this._should.apply(this, [].concat.apply([method], arguments));
var args = Array.apply([], arguments);
args.unshift(method);
return this._should.apply(this, args);
}
})
//用于收起或展开详细测试结果
Expand Down

0 comments on commit f4b7ddb

Please sign in to comment.