lib/resque_spec.rb in resque_spec-0.9.1 vs lib/resque_spec.rb in resque_spec-0.9.2
- old
+ new
@@ -1,10 +1,11 @@
require 'resque_spec/ext'
require 'resque_spec/helpers'
require 'resque_spec/matchers'
module ResqueSpec
+ include Resque::Helpers
extend self
attr_accessor :inline
def dequeue(queue_name, klass, *args)
@@ -91,10 +92,10 @@
end
def payload_with_string_keys(payload)
{
'class' => payload[:class],
- 'args' => payload[:args],
+ 'args' => decode(encode(payload[:args])),
'stored_at' => payload[:stored_at]
}
end
end