Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing empty spaces

  • Loading branch information...
commit 168c12c0e46233c765c62defdf3b4da9df11c7f9 1 parent 4f34ea7
Mateus Del Bianco mateusdelbianco authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 spec/loner_spec.rb
7 spec/loner_spec.rb
View
@@ -11,10 +11,8 @@ class SomeJob
@queue = :some_queue
end
-class SomeUniqueJob
-
+class SomeUniqueJob
include Resque::Plugins::UniqueJob
-
@queue = :other_queue
def self.perform(foo); end
end
@@ -28,7 +26,6 @@ def self.perform(foo)
end
class DeprecatedUniqueJob < Resque::Plugins::Loner::UniqueJob
-
@queue = :other_queue
def self.perform(foo); end
end
@@ -149,7 +146,7 @@ def self.perform(*args); end
Resque.enqueue(SomeUniqueJob, "foo")
Resque.size(:other_queue).should == 1
end
-
+
it 'should not raise an error when deleting an already empty queue' do
expect { Resque.remove_queue(:other_queue) }.to_not raise_error
end
Please sign in to comment.
Something went wrong with that request. Please try again.