Sha256: ed1499c8e0f3ece82cc19457d0f96df8d8e106e36d4a7b5c81ec27dd02bb46da

Contents?: true

Size: 342 Bytes

Versions: 10

Compression:

Stored size: 342 Bytes

Contents

require 'spec_helper'

describe Delayed::Backend::Test::Job do
  it_should_behave_like 'a delayed_job backend'
  
  describe "#reload" do
    it 'should cause the payload object to be reloaded' do
      job = "foo".delay.length
      o = job.payload_object
      o.object_id.should_not == job.reload.payload_object.object_id
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
delayed_job_unique_key-0.0.4 spec/test_backend_spec.rb
delayed_job-3.0.1 spec/test_backend_spec.rb
delayed_job-3.0.0 spec/test_backend_spec.rb
delayed_job_unique_key-0.0.3 spec/test_backend_spec.rb
delayed_job_unique_key-0.0.2 spec/test_backend_spec.rb
delayed_job_unique_key-0.0.1 spec/test_backend_spec.rb
delayed_job-3.0.0.pre4 spec/test_backend_spec.rb
delayed_job-3.0.0.pre3 spec/test_backend_spec.rb
delayed_job-3.0.0.pre2 spec/test_backend_spec.rb
delayed_job-3.0.0.pre spec/test_backend_spec.rb