test/test_history.rb in sidetiq-0.4.0 vs test/test_history.rb in sidetiq-0.4.1
- old
+ new
@@ -11,11 +11,11 @@
entry = Sidekiq.redis do |redis|
redis.lrange('sidetiq:TestHistory::HistoryWorker:history', 0, -1)
end
- actual = JSON.parse(entry[0], symbolize_names: true)
+ actual = Sidekiq.load_json(entry[0]).symbolize_keys
assert_equal 'success', actual[:status]
assert_empty actual[:error]
assert_empty actual[:backtrace]
@@ -35,10 +35,10 @@
entry = Sidekiq.redis do |redis|
redis.lrange('sidetiq:TestHistory::HistoryWorker:history', 0, -1)
end
- actual = JSON.parse(entry[0], symbolize_names: true)
+ actual = Sidekiq.load_json(entry[0]).symbolize_keys
assert_equal 'failure', actual[:status]
assert_equal "failed", actual[:error]
assert_equal "StandardError", actual[:exception]