spec/sdp/description_spec.rb in sdp-0.2.0 vs spec/sdp/description_spec.rb in sdp-0.2.1

- old
+ new

@@ -275,9 +275,15 @@ @sdp.to_s.should match /v=0/ @sdp.to_s.should match /o=/ @sdp.to_s.should match /s=/ @sdp.to_s.should match /t=/ end + + it "ends each line with \r\n" do + @sdp.to_s.each_line do |l| + l.should match /\r\n$/ + end + end end context "#valid?" do before :each do @sdp = SDP::Description.new \ No newline at end of file