Sha256: 86be62d5234c51870432572cc5089d65ac6b73019a8afe45393e9ae8c69ce478

Contents?: true

Size: 636 Bytes

Versions: 1

Compression:

Stored size: 636 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(:start_value => 0.2)
      p.start_value.should eq(0.2)
    end
    
    it "should assign settings given during construction" do
      p = Profile.new(
        :start_value => 0.2,
        :value_changes => {
          1.0 => ValueChange.new(:value => 0.5),
          1.5 => ValueChange.new(:value => 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

1 entries across 1 versions & 1 rubygems

Version Path
music-transcription-0.3.0 spec/profile_spec.rb