Description: Relative path for sample_jobs.rb
 The file sample_jobs inside spec directory is needed for the program to run. 
 Make it available via relative path as well as from 
 /usr/share/ruby-delayed-job.
Author: Balasankar C <balasankarc@autistici.org>
Forwarded: not-needed
Last-Update: 2015-05-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/delayed/backend/shared_spec.rb
+++ b/lib/delayed/backend/shared_spec.rb
@@ -1,5 +1,8 @@
-require File.expand_path('../../../../spec/sample_jobs', __FILE__)
-
+if File.exist?(File.expand_path('../../../../spec/sample_jobs.rb', __FILE__)) then
+    require File.expand_path('../../../../spec/sample_jobs', __FILE__)
+else
+    require '/usr/share/ruby-delayed-job/sample_jobs'
+end
 require 'active_support/core_ext'
 
 shared_examples_for 'a delayed_job backend' do
