Improve status message creation service spec
This commit is contained in:
parent
520d80cc1a
commit
b84eff62ea
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ describe StatusMessageCreationService do
|
||||||
status_message = StatusMessageCreationService.new(alice).create(params.merge(photos: photo_ids))
|
status_message = StatusMessageCreationService.new(alice).create(params.merge(photos: photo_ids))
|
||||||
photos = status_message.photos
|
photos = status_message.photos
|
||||||
expect(photos.size).to eq(2)
|
expect(photos.size).to eq(2)
|
||||||
expect(photos.map(&:id).map(&:to_s)).to eq(photo_ids)
|
expect(photos.map(&:id).map(&:to_s)).to match_array(photo_ids)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "it marks the photos as non-public if the post is non-public" do
|
it "it marks the photos as non-public if the post is non-public" do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue