./spec/animoto/resources/jobs/rendering_spec.rb in animoto-1.3.1 vs ./spec/animoto/resources/jobs/rendering_spec.rb in animoto-1.5.0

- old
+ new

@@ -25,11 +25,12 @@ 'rendering_job' => { 'state' => 'completed', 'links' => { 'self' => 'http://animoto.com/jobs/rendering/1', 'storyboard' => 'http://animoto.com/storyboards/1', - 'video' => 'http://animoto.com/videos/1' + 'video' => 'http://animoto.com/videos/1', + 'stream' => 'http://animoto.com/streams/1.m3u8' } } } } } @@ -50,8 +51,12 @@ end it "should create a video from the video url" do @job.video.should be_an_instance_of(Animoto::Resources::Video) @job.video.url.should == @job.video_url + end + + it "should set its stream url from the 'stream' link given" do + @job.stream_url.should == 'http://animoto.com/streams/1.m3u8' end end end