Skip to content

Commit

Permalink
Merge pull request #35 from harvesthq/master
Browse files Browse the repository at this point in the history
Moving Helpers into the ResqueUnit namespace to quiet warnings from Resque
  • Loading branch information
justinweiss committed Jan 29, 2014
2 parents a3a58b3 + 405680a commit 8a1d740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/resque_unit/helpers.rb
@@ -1,4 +1,4 @@
module Resque
module ResqueUnit
module Helpers
# Given a Ruby object, returns a string suitable for storage in a
# queue.
Expand Down
4 changes: 2 additions & 2 deletions lib/resque_unit/resque.rb
@@ -1,7 +1,7 @@
# The fake Resque class. This needs to be loaded after the real Resque
# for the assertions in +ResqueUnit::Assertions+ to work.
module Resque
include Helpers
include ResqueUnit::Helpers
extend self

# Resets all the queues to the empty state. This should be called in
Expand Down Expand Up @@ -215,7 +215,7 @@ def perform_with_hooks(job_payload)
end

class Job
extend Helpers
extend ResqueUnit::Helpers
def self.create(queue, klass_name, *args)
Resque.enqueue_unit(queue, {"class" => constantize(klass_name).to_s, "args" => args})
end
Expand Down

0 comments on commit 8a1d740

Please sign in to comment.