Sha256: a5f761f06cf4ee8379abb11f8dff855ed479897acc97fb21d12eb0e7a6567c16

Contents?: true

Size: 441 Bytes

Versions: 13

Compression:

Stored size: 441 Bytes

Contents

require 'spec_helper'

describe Delayed::Worker do
  describe "backend=" do
    before do
      @clazz = Class.new
      Delayed::Worker.backend = @clazz
    end

    it "should set the Delayed::Job constant to the backend" do
      Delayed::Job.should == @clazz
    end

    it "should set backend with a symbol" do
      Delayed::Worker.backend = :test
      Delayed::Worker.backend.should == Delayed::Backend::Test::Job
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
drewda_delayed_job-3.0.3 spec/worker_spec.rb
delayed_job-3.0.3 spec/worker_spec.rb
delayed_job_unique_key-0.0.4 spec/worker_spec.rb
delayed_job-3.0.2 spec/worker_spec.rb
delayed_job-3.0.1 spec/worker_spec.rb
delayed_job-3.0.0 spec/worker_spec.rb
delayed_job_unique_key-0.0.3 spec/worker_spec.rb
delayed_job_unique_key-0.0.2 spec/worker_spec.rb
delayed_job_unique_key-0.0.1 spec/worker_spec.rb
delayed_job-3.0.0.pre4 spec/worker_spec.rb
delayed_job-3.0.0.pre3 spec/worker_spec.rb
delayed_job-3.0.0.pre2 spec/worker_spec.rb
delayed_job-3.0.0.pre spec/worker_spec.rb