Sha256: 375cf0e06af6f3997a4095579bdfb6a67ad61a5a026060fe2427f3cc966dc2c4

Contents?: true

Size: 719 Bytes

Versions: 4

Compression:

Stored size: 719 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Score do
  before :each do
    @parts = { "piano (LH)" => Samples::SAMPLE_PART }
    @program = Program.new [0...0.75, 0...0.75]
  end
  
  describe '.new' do
    it "should assign part and program given during construction" do
      score = Score.new parts: @parts, program: @program
      score.parts.should eq(@parts)
      score.program.should eq(@program)
    end

    it "should assign tempo profile given during construction" do
      profile = Profile.new(Tempo.new(200), 0.5 => Change::Gradual.new(Tempo.new(120),0.5) )
      score = Score.new tempo_profile: profile
      score.tempo_profile.should eq(profile)
    end    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
music-transcription-0.6.3 spec/score_spec.rb
music-transcription-0.6.2 spec/score_spec.rb
music-transcription-0.6.1 spec/score_spec.rb
music-transcription-0.6.0 spec/score_spec.rb