define(['lodash', 'app/view/piano/piano_metronome'], function(_, PianoMetronome) {
	console.log('piano metronome spec');
});

@@ -81,42 +81,1682 @@
  %7B%0A%09
-console.log('piano metronome spec'
+%22use strict%22;%0A%0A%09describe(%22Piano metronome%22, function() %7B%0A%09%09it(%22should be created%22, function() %7B%0A%09%09%09var pianoMetronome = new PianoMetronome();%0A%09%09%09expect(pianoMetronome).toBeTruthy();%0A%09%09%7D);%0A%0A%09%09it(%22should render%22, function() %7B%0A%09%09%09var pianoMetronome = new PianoMetronome();%0A%09%09%09pianoMetronome.render()%0A%09%09%09expect(pianoMetronome.el).toBeTruthy();%0A%09%09%7D);%0A%0A%09%09it(%22should toggle%22, function() %7B%0A%09%09%09var pianoMetronome = new PianoMetronome();%0A%09%09%09var metronome = jasmine.createSpyObj('metronome', %5B'start','stop','isPlaying','bind','getTempo'%5D);%0A%09%09%09pianoMetronome.metronome = metronome;%0A%0A%09%09%09pianoMetronome.render();%0A%0A%09%09%09metronome.isPlaying.andReturn(false);%0A%09%09%09pianoMetronome.toggle();%0A%09%09%09expect(metronome.start).toHaveBeenCalled();%0A%09%09%09metronome.isPlaying.andReturn(true);%0A%09%09%09pianoMetronome.toggle();%0A%09%09%09expect(metronome.stop).toHaveBeenCalled();%0A%09%09%7D);%0A%0A%09%09it(%22should blink%22, function() %7B%0A%09%09%09var pianoMetronome = new PianoMetronome();%0A%09%09%09var onbeatSpy = jasmine.createSpy(%22onbeatSpy%22);%0A%09%09%09var offbeatSpy = jasmine.createSpy(%22offbeatSpy%22);%0A%0A%09%09%09pianoMetronome.bind(%22onbeat%22, onbeatSpy);%0A%09%09%09pianoMetronome.bind(%22offbeat%22, offbeatSpy);%0A%09%09%09pianoMetronome.render();%0A%0A%09%09%09expect(onbeatSpy).not.toHaveBeenCalled();%0A%09%09%09expect(offbeatSpy).not.toHaveBeenCalled();%0A%09%09%09pianoMetronome.blink();%0A%09%09%09expect(onbeatSpy).toHaveBeenCalled();%0A%09%09%09pianoMetronome.blink();%0A%09%09%09expect(offbeatSpy).toHaveBeenCalled();%0A%09%09%7D);%0A%0A%09%09it(%22should play%22, function() %7B%0A%09%09%09var pianoMetronome = new PianoMetronome();%0A%09%09%09var audio = jasmine.createSpyObj('audio', %5B'play','load'%5D);%0A%09%09%09pianoMetronome.audio = audio;%0A%09%09%09pianoMetronome.render();%0A%0A%09%09%09pianoMetronome.play();%0A%09%09%09expect(pianoMetronome.audio.play).toHaveBeenCalled();%0A%09%09%7D);%0A%09%7D
 );%0A%7D

add spec for metronome view