fix toBeDisabled jQuery matcher

This commit is contained in:
Wouter Groeneveld 2011-08-03 11:20:25 +02:00
parent 0d84493b05
commit 280122cee3
1 changed files with 3 additions and 3 deletions

View File

@ -137,9 +137,9 @@ jasmine.JQuery.matchersClass = {};
return this.actual.find(selector).size() > 0;
},
toBeDisabled: function(selector){
return this.actual.attr("disabled") == true;
}
toBeDisabled: function(selector) {
return this.actual.is(':disabled');
}
};
var hasProperty = function(actualValue, expectedValue) {