mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
d4df84e8b0
add supporting test.
14 lines
No EOL
324 B
Ruby
14 lines
No EOL
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 |