./spec/animoto/song_spec.rb in animoto-0.0.0.alpha6 vs ./spec/animoto/song_spec.rb in animoto-0.0.0.alpha7
- old
+ new
@@ -5,12 +5,12 @@
describe "#to_hash" do
before do
@song = Animoto::Song.new 'http://website.com/song.mp3'
end
- it "should have a 'source' key with the url" do
- @song.to_hash.should have_key('source')
- @song.to_hash['source'].should == @song.source
+ it "should have a 'source_url' key with the url" do
+ @song.to_hash.should have_key('source_url')
+ @song.to_hash['source_url'].should == @song.source
end
describe "if a start time was specified" do
before do
@song.start_time = 30.2