Sha256: 08944c2722c3bcc37dcf39300b05af2d402f65243ced55dcd65b8a19531fa12a
Contents?: true
Size: 1.6 KB
Versions: 2
Compression:
Stored size: 1.6 KB
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper") describe Animoto::Resources::Jobs::StoryboardUnbundling do it "should have endpoint /jobs/storyboard_unbundling" do Animoto::Resources::Jobs::StoryboardUnbundling.endpoint.should == '/jobs/storyboard_unbundling' end it "should have content type 'application/vnd.animoto.storyboard_unbundling_job" do Animoto::Resources::Jobs::StoryboardUnbundling.content_type.should == 'storyboard_unbundling_job' end it "should have payload key storyboard_unbundling_job" do Animoto::Resources::Jobs::StoryboardUnbundling.payload_key.should == 'storyboard_unbundling_job' end describe "loading from a response body" do before do @body = { 'response' => { 'status' => { 'code' => 200 }, 'payload' => { 'storyboard_unbundling_job' => { 'state' => 'completed', 'links' => { 'self' => 'https://platform.animoto.com/jobs/storyboard_unbundling/1', 'storyboard' => 'https://platform.animoto.com/storyboards/1' } } } } } @job = Animoto::Resources::Jobs::StoryboardUnbundling.load @body end it "should set the storyboard_url from the body" do @job.storyboard_url.should == "https://platform.animoto.com/storyboards/1" end it "should create a storyboard from the storyboard url" do @job.storyboard.should be_a(Animoto::Resources::Storyboard) @job.storyboard_url.should == @job.storyboard.url end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
animoto-1.1.1 | ./spec/animoto/resources/jobs/storyboard_unbundling_spec.rb |
animoto-1.1.0 | ./spec/animoto/resources/jobs/storyboard_unbundling_spec.rb |