spec/note_spec.rb in music-transcription-0.7.2 vs spec/note_spec.rb in music-transcription-0.7.3

- old
+ new

@@ -34,10 +34,18 @@ note.duration = 3 note.duration.should eq 3 end end + describe '#clear_links' do + it 'should remove all links' do + n = Note.new(2,[C2,E2],links: {C2 => Link::Slur.new(D2)}) + n.clear_links + n.links.should be_empty + end + end + describe '#transpose!' do context 'given pitch diff' do before(:all) do @note = Note::Quarter.new([C2,F2], links:{C2=>Link::Slur.new(D2)}) @diff = Pitch.new(semitone: 4) @@ -111,11 +119,9 @@ end context 'note with 0 duration' do it 'should return false' do Note.new(0,[C2]).should be_invalid - require 'pry' - binding.pry end end context 'note with negative duration' do it 'should be invalid' do