./spec/animoto/resources/base_spec.rb in animoto-0.1.1.beta1 vs ./spec/animoto/resources/base_spec.rb in animoto-1.0.0
- old
+ new
@@ -28,14 +28,15 @@
'download' => "http://animoto.com/videos/1",
'storyboard' => "https://api.animoto.com/storyboards/1",
'self' => @url
},
'metadata' => {
- 'duration' => 300,
- 'format' => 'h264',
- 'framerate' => 30,
- 'vertical_resolution' => "720p"
+ 'rendering_parameters' => {
+ 'format' => 'h264',
+ 'framerate' => 30,
+ 'vertical_resolution' => "720p"
+ }
}
}
}
}
}
@@ -44,12 +45,12 @@
it "should ensure that two instances instantiated with the same unique identifier will both be the same object" do
@video.should equal(Animoto::Resources::Video.load(@body))
end
it "should update the original instance with the initialization parameters of the new one" do
- @video.duration.should be_nil
+ @video.framerate.should be_nil
video = Animoto::Resources::Video.load(@body)
- video.duration.should == 300
- @video.duration.should == 300
+ video.framerate.should == 30
+ @video.framerate.should == 30
end
end
end
\ No newline at end of file