Sha256: c57b644f188456c8bd21ae8b6d94fe3b92b7c3abc4428633e9bbbf3e193871d3
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Part do context '.new' do it 'should have no notes' do Part.new.notes.should be_empty end it "should assign dynamic profile given during construction" do profile = Profile.new(Dynamics::FFF, { 1.0 => Change::Immediate.new(Dynamics::PP) }) part = Part.new dynamic_profile: profile part.dynamic_profile.should eq(profile) end it "should assign notes given during construction" do notes = [ Note::Quarter.new([C1,D1]) ] part = Part.new notes: notes part.notes.should eq(notes) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
music-transcription-0.5.2 | spec/part_spec.rb |