features/support/env.rb in rtsp-0.0.1.alpha vs features/support/env.rb in rtsp-0.1.0
- old
+ new
@@ -1,37 +1,39 @@
require 'rubygems'
require 'socket'
require 'timeout'
+require 'cucumber/rspec/doubles'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'rtsp/client'
+$:.unshift(File.dirname(__FILE__) + '/../../spec/support')
+require 'fake_rtsp_server'
-DESCRIBE_RESPONSE = <<-RESP
-RTSP/1.0 200 OK
-Server: DSS/5.5 (Build/489.7; Platform/Linux; Release/Darwin; )
-Cseq: 1
-Cache-Control: no-cache
-Content-length: 406
-Date: Sun, 23 Jan 2011 00:36:45 GMT
-Expires: Sun, 23 Jan 2011 00:36:45 GMT
-Content-Type: application/sdp
-x-Accept-Retransmit: our-retransmit
-x-Accept-Dynamic-Rate: 1
-Content-Base: rtsp://64.202.98.91:554/gs.sdp/
-
-v=0
-o=- 545877020 467920391 IN IP4 127.0.0.1
-s=Groove Salad from SomaFM [aacPlus]
-i=Downtempo Ambient Groove
-c=IN IP4 0.0.0.0
-t=0 0
-a=x-qt-text-cmt:Orban Opticodec-PC
-a=x-qt-text-nam:Groove Salad from SomaFM [aacPlus]
-a=x-qt-text-inf:Downtempo Ambient Groove
-a=control:*
-m=audio 0 RTP/AVP 96
-b=AS:48
-a=rtpmap:96 MP4A-LATM/44100/2
-a=fmtp:96 cpresent=0;config=400027200000
-a=control:trackID=1
-RESP
+DESCRIBE_RESPONSE = %Q{ RTSP/1.0 200 OK\r
+Server: DSS/5.5 (Build/489.7; Platform/Linux; Release/Darwin; )\r
+Cseq: 2\r
+Cache-Control: no-cache\r
+Content-length: 406\r
+Date: Sun, 23 Jan 2011 00:36:45 GMT\r
+Expires: Sun, 23 Jan 2011 00:36:45 GMT\r
+Content-Type: application/sdp\r
+x-Accept-Retransmit: our-retransmit\r
+x-Accept-Dynamic-Rate: 1\r
+Content-Base: rtsp://64.202.98.91:554/gs.sdp/\r
+\r\n\r
+v=0\r
+o=- 545877020 467920391 IN IP4 127.0.0.1\r
+s=Groove Salad from SomaFM [aacPlus]\r
+i=Downtempo Ambient Groove\r
+c=IN IP4 0.0.0.0\r
+t=0 0\r
+a=x-qt-text-cmt:Orban Opticodec-PC\r\n
+a=x-qt-text-nam:Groove Salad from SomaFM [aacPlus]\r
+a=x-qt-text-inf:Downtempo Ambient Groove\r
+a=control:*\r
+m=audio 0 RTP/AVP 96\r
+b=AS:48\r
+a=rtpmap:96 MP4A-LATM/44100/2\r
+a=fmtp:96 cpresent=0;config=400027200000\r
+a=control:trackID=1\r
+\r\n}