Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 441 Bytes
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
Jump to Line
Something went wrong with that request. Please try again.