Sha256: a93600e6b5bd817c2bbcda5a0383779e9aed98e6bd4324b897220f4af8ecdb3a
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Part do context '.new' do its(:notes) { should be_empty } it "should assign loudness_profile profile given during construction" do loudness_profile = Profile.new(0.5, 1.0 => linear_change(1.0, 2.0)) part = Part.new loudness_profile: loudness_profile part.loudness_profile.should eq(loudness_profile) end it "should assign notes given during construction" do notes = [ Note.new(0.25, [C1,D1]) ] part = Part.new notes: notes part.notes.should eq(notes) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
music-transcription-0.4.3 | spec/part_spec.rb |
music-transcription-0.4.2 | spec/part_spec.rb |
music-transcription-0.4.1 | spec/part_spec.rb |
music-transcription-0.4.0 | spec/part_spec.rb |