spec/fragment_spec.rb in scissor-0.3.0 vs spec/fragment_spec.rb in scissor-0.4.0
- old
+ new
@@ -35,9 +35,15 @@
fragment.pitch.should eql(50)
fragment.duration.should eql(21.0)
end
+ it "should have a pan" do
+ fragment = Scissor::Fragment.new(fixture('sample.mp3'), 5, 10.5, false, 50, false, 10)
+
+ fragment.pan.should eql(10)
+ end
+
it "should return new fragment and remaining start point and length" do
new_fragment, remaining_start, remaining_length = @fragment.create(0.5, 1.0)
new_fragment.filename.should eql(fixture('sample.mp3'))
new_fragment.start.should eql(6.0)
new_fragment.duration.should eql(1.0)