2010-06-25 00:15:06 +00:00
|
|
|
beforeEach(function() {
|
|
|
|
this.addMatchers({
|
|
|
|
toBePlaying: function(expectedSong) {
|
|
|
|
var player = this.actual;
|
2011-02-26 23:07:59 +00:00
|
|
|
return player.currentlyPlayingSong === expectedSong &&
|
|
|
|
player.isPlaying;
|
2010-06-25 00:15:06 +00:00
|
|
|
}
|
2011-02-26 23:07:59 +00:00
|
|
|
});
|
2010-06-25 00:15:06 +00:00
|
|
|
});
|