Sha256: 6dd580d83b50da595147843126885f4d719af48a0a49a0e8134331997b5b4aa8
Contents?: true
Size: 707 Bytes
Versions: 9
Compression:
Stored size: 707 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(120) }) score = Score.new tempo_profile: profile score.tempo_profile.should eq(profile) end end end
Version data entries
9 entries across 9 versions & 1 rubygems