Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Update specs to accept unscoped find chain
Browse files Browse the repository at this point in the history
  • Loading branch information
csaura committed Oct 3, 2013
1 parent c2fa6a8 commit 5ddbc13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/delayed_paperclip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
let(:dummy) { Dummy.create! }

it "finds dummy and calls #process_delayed!" do
Dummy.expects(:find).with(dummy.id).returns(dummy)
dummy_stub = stub
dummy_stub.expects(:find).with(dummy.id).returns(dummy)
Dummy.expects(:unscoped).returns(dummy_stub)
dummy.image.expects(:process_delayed!)
DelayedPaperclip.process_job("Dummy", dummy.id, :image)
end
Expand Down

0 comments on commit 5ddbc13

Please sign in to comment.