lib/resque_spec.rb in resque_spec-0.14.2 vs lib/resque_spec.rb in resque_spec-0.14.3

- old
+ new

@@ -1,11 +1,10 @@ require 'resque_spec/ext' require 'resque_spec/helpers' require 'resque_spec/matchers' module ResqueSpec - include Resque::Helpers extend self attr_accessor :inline attr_accessor :disable_ext @@ -100,9 +99,17 @@ { 'class' => payload[:class], 'args' => decode(encode(payload[:args])), 'stored_at' => payload[:stored_at] } + end + + def encode(object) + Resque.encode(object) + end + + def decode(object) + Resque.decode(object) end end config = RSpec.configuration config.include ResqueSpec::Helpers