Sha256: f5aa8d32358d2d267930d43ccf5ccbd60b75f10144b31f391fd07238b9f86741

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

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

describe Profile do
  
  context '.new' do
    it "should assign start value given during construction" do
      p = Profile.new(0.2)
      p.start_value.should eq(0.2)
    end
    
    it "should assign settings given during construction" do
      p = Profile.new(0.2,
        1.0 => ValueChange.new(0.5),
        1.5 => ValueChange.new(1.0)
      )
      p.value_changes[1.0].value.should eq(0.5)
      p.value_changes[1.5].value.should eq(1.0)
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
music-transcription-0.4.3 spec/profile_spec.rb
music-transcription-0.4.2 spec/profile_spec.rb
music-transcription-0.4.1 spec/profile_spec.rb
music-transcription-0.4.0 spec/profile_spec.rb