mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
14 lines
324 B
Ruby
14 lines
324 B
Ruby
|
require 'helper'
|
||
|
|
||
|
class TestSidekiq < MiniTest::Unit::TestCase
|
||
|
describe 'json processing' do
|
||
|
it 'loads json' do
|
||
|
assert_equal ({"foo" => "bar"}), Sidekiq.load_json("{\"foo\":\"bar\"}")
|
||
|
end
|
||
|
|
||
|
it 'dumps json' do
|
||
|
assert_equal "{\"foo\":\"bar\"}", Sidekiq.dump_json({ "foo" => "bar" })
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|