Sha256: d7c859e31fdd84d16e7337515123fe06e2b20b8db331151e5cc4fcec12fb30db
Contents?: true
Size: 699 Bytes
Versions: 4
Compression:
Stored size: 699 Bytes
Contents
require 'spec_helper' describe "Base Delayed Paperclip Integration" do before :all 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_false dummy.image = File.open("#{ROOT}/spec/fixtures/12k.png") dummy.save! end it "processing column remains true" do dummy.image_processing.should be_true dummy.save! dummy.image_processing.should be_true end end end
Version data entries
4 entries across 4 versions & 1 rubygems