Browse files

Removing empty spaces

  • Loading branch information...
1 parent 4f34ea7 commit 168c12c0e46233c765c62defdf3b4da9df11c7f9 @mateusdelbianco mateusdelbianco committed Sep 3, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 spec/loner_spec.rb
View
7 spec/loner_spec.rb
@@ -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

0 comments on commit 168c12c

Please sign in to comment.