spec/sdp/description_spec.rb in sdp-0.2.1 vs spec/sdp/description_spec.rb in sdp-0.2.2
- old
+ new
@@ -1,6 +1,7 @@
require File.dirname(__FILE__) + '/../spec_helper'
+require 'sdp'
require 'sdp/description'
require 'base64'
describe SDP::Description do
before :each do
@@ -280,9 +281,14 @@
it "ends each line with \r\n" do
@sdp.to_s.each_line do |l|
l.should match /\r\n$/
end
+ end
+
+ it "handles descriptions with no time zone" do
+ sdp = SDP.parse(SDP_MISSING_TIME)
+ lambda { sdp.to_s }.should_not raise_error
end
end
context "#valid?" do
before :each do
\ No newline at end of file