add a couple specs to album_spec
This commit is contained in:
parent
a31c22adb3
commit
ab4e3a9f7f
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue