add a couple specs to album_spec

This commit is contained in:
Raphael 2010-11-02 18:07:49 -07:00
parent a31c22adb3
commit ab4e3a9f7f

View file

@ -28,6 +28,10 @@ describe Album do
post.mutable?.should == true
end
it 'has a diaspora_handle' do
album.diaspora_handle.should == user.diaspora_handle
end
context 'when an album has two attached images' do
before do
2.times do
@ -70,4 +74,10 @@ describe Album do
end
end
describe 'serialization' do
it 'has a diaspora_handle' do
album.to_diaspora_xml.include?(user.diaspora_handle).should be_true
end
end
end