test/test_edl.rb in edl-0.0.7 vs test/test_edl.rb in edl-0.0.8
- old
+ new
@@ -108,10 +108,15 @@
specify "report src_length as rec_length_with_transition" do
e = EDL::Event.new(:rec_start_tc => "2h".tc, :rec_end_tc => "2h 2s".tc)
e.src_length.should.equal "2s".tc.to_i
end
+ specify "support line_number" do
+ EDL::Event.new.line_number.should.be.nil
+ EDL::Event.new(:line_number => 3).line_number.should.equal 3
+ end
+
specify "support capture_length as an alias to src_length" do
tw = flexmock
tw.should_receive(:actual_length_of_source).and_return(:something)
e = EDL::Event.new(:timewarp => tw)
e.src_length.should.equal e.capture_length
@@ -137,10 +142,11 @@
e.should.be.reversed
end
specify "report speed as 100 percent without a timewarp" do
e = EDL::Event.new
- e.speed.should.equal 100
+ e.speed.should.be.kind_of Float
+ e.speed.should.equal 100.0
end
specify "consult the timewarp for speed" do
tw = flexmock
tw.should_receive(:speed).and_return(:something)
\ No newline at end of file