Sha256: b2a4c324d9536495d7532735a518f260b798e4772e6da50ae040bcb0799fc38f

Contents?: true

Size: 554 Bytes

Versions: 4

Compression:

Stored size: 554 Bytes

Contents

require 'spec_helper'

describe "Base Delayed Paperclip Integration" do
  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}/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

4 entries across 4 versions & 2 rubygems

Version Path
kt-delayed_paperclip-3.1.1 spec/integration/base_delayed_paperclip_spec.rb
kt-delayed_paperclip-3.1.0 spec/integration/base_delayed_paperclip_spec.rb
delayed_paperclip-3.0.1 spec/integration/base_delayed_paperclip_spec.rb
delayed_paperclip-3.0.0 spec/integration/base_delayed_paperclip_spec.rb