blob: 76b9e3029665e5274fa2e6e83fa7943ba1fc4953 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require "rails_helper"
module Admin
describe PhotosController do
let(:admin) { create(:admin) }
before :each do
http_login(admin)
end
describe "#update" do
let(:photo) { create(:photo) }
it "re-processes the photo" do
allow(ReProcessPhotoJob).to receive(:perform_later)
put :update, params: { id: photo.id }
expect(ReProcessPhotoJob).to have_received(:perform_later).with(photo)
end
end
end
end
|