Sha256: 66078b7366799f6291a45e9ff5359f2c6ba41a9092ca2b3956cda107ba0525af
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' describe "Base Delayed Paperclip Integration" do before :each do DelayedPaperclip.options[:background_job_class] = DelayedPaperclip::Jobs::Resque Resque.remove_queue(:paperclip) end let(:dummy) { Dummy.create } before :each do reset_dummy(paperclip: { default_url: "/../../fixtures/missing.png" }) end describe "double save" do before :each do dummy.image_processing.should be_falsey dummy.image = File.open("#{ROOT}/spec/fixtures/12k.png") dummy.save! end it "processing column remains true" do dummy.image_processing.should be_truthy dummy.save! dummy.image_processing.should be_truthy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
delayed_paperclip-2.9.2 | spec/integration/base_delayed_paperclip_spec.rb |