Merge pull request #1704 from codeminator/fix-warning-in-photos-controller-spec

Fix Warning in specs: PhotoController
This commit is contained in:
pozorvlak
2018-10-10 09:19:33 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -85,6 +85,7 @@ submit the change with your pull request.
- Mark Taffman / [mftaff](https://github.com/mftaff)
- Jennifer Kruse / [jenkr55](https://github.com/jenkr55)
- Christopher Bazin / [RobotScissors](https://github.com/robotscissors)
- Ahmed Shahin / [codeminator](https://www.github.com/codeminator)
## Bots

View File

@@ -113,7 +113,7 @@ describe PhotosController do
comment = FactoryBot.create(:comment)
expect do
post :create, photo: { flickr_photo_id: photo.flickr_photo_id }, type: "comment", id: comment.id
end.to raise_error
end.to raise_error('Photos not supported')
end
end