spec/value_change_spec.rb in music-transcription-0.3.0 vs spec/value_change_spec.rb in music-transcription-0.4.0
- old
+ new
@@ -2,17 +2,17 @@
describe ValueChange do
context '.new' do
it "should assign offset, value, and duration given during construction" do
- event = ValueChange.new(:value => 0)
+ event = ValueChange.new(0)
event.value.should eq(0)
- event.transition.type.should eq(Transition::IMMEDIATE)
+ event.transition.class.should eq(Transition::Immediate)
event.transition.duration.should eq(0)
- event = ValueChange.new(:value => 2, :transition => linear(3))
+ event = ValueChange.new(2, Transition::Linear.new(3))
event.value.should eq(2)
- event.transition.type.should eq(Transition::LINEAR)
+ event.transition.class.should eq(Transition::Linear)
event.transition.duration.should eq(3)
end
end
end