Sha256: 336812c321cfb2fe089fd7e0b816340edfd8e0ccd15c1e1ec85b06b14fc32e8b
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe ValueChange do context '.new' do it "should assign offset, value, and duration given during construction" do event = ValueChange.new(:value => 0) event.value.should eq(0) event.transition.type.should eq(Transition::IMMEDIATE) event.transition.duration.should eq(0) event = ValueChange.new(:value => 2, :transition => linear(3)) event.value.should eq(2) event.transition.type.should eq(Transition::LINEAR) event.transition.duration.should eq(3) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
music-transcription-0.3.0 | spec/value_change_spec.rb |