Sha256: 1b973a55220962e59d00dd993755cf37aa8e77859e57407cf11924a55969e60d
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' describe "ActiveJob inline" do if defined? ActiveJob before :all do DelayedPaperclip.options[:background_job_class] = DelayedPaperclip::Jobs::ActiveJob ActiveJob::Base.logger = nil end let(:dummy) { Dummy.new(:image => File.open("#{ROOT}/spec/fixtures/12k.png")) } describe "perform job" do before :each do DelayedPaperclip.options[:url_with_processing] = true reset_dummy end it "performs a job" do dummy.image = File.open("#{ROOT}/spec/fixtures/12k.png") Paperclip::Attachment.any_instance.expects(:reprocess!) dummy.save! end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
delayed_paperclip-2.9.1 | spec/integration/active_job_inline_spec.rb |
delayed_paperclip-2.9.0 | spec/integration/active_job_inline_spec.rb |