Skip to content
Browse files

Fix determine_backend behavior so that it doesn't throw an exception

  • Loading branch information...
1 parent c608472 commit 4a62d900cc95861b85bf21ae21a111ea8efa946c @petergoldstein petergoldstein committed Jan 6, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −1 lib/backgrounder/support/backends.rb
  2. +0 −4 spec/backgrounder/support/backends_spec.rb
View
2 lib/backgrounder/support/backends.rb
@@ -25,7 +25,7 @@ def available_backends
backends << :qu if defined? ::Qu
backends << :sidekiq if defined? ::Sidekiq
backends << :qc if defined? ::QC
- backends << :immediate
+ backends
end
end
View
4 spec/backgrounder/support/backends_spec.rb
@@ -33,10 +33,6 @@
it 'detects QC' do
expect(mock_module.available_backends).to include(:qc)
end
-
- it 'detects Immediate' do
- expect(mock_module.available_backends).to include(:immediate)
- end
end
describe 'setting backend' do

0 comments on commit 4a62d90

Please sign in to comment.
Something went wrong with that request. Please try again.