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

@ -138,7 +138,7 @@ jasmine.JQuery.matchersClass = {};
},
toBeDisabled: function(selector) {
return this.actual.attr("disabled") == true;
return this.actual.is(':disabled');
}
};