jasmine-ajax/spec/javascripts/helpers/SpecHelper.js
2010-07-26 20:27:38 -07:00

10 lines
223 B
JavaScript

beforeEach(function() {
this.addMatchers({
toBePlaying: function(expectedSong) {
var player = this.actual;
return player.currentlyPlayingSong === expectedSong
&& player.isPlaying;
}
})
});