Sha256: d7c18c6291aaa550c12741001f92a5c3817b3ad6eb7620eee6326ba014ba975a

Contents?: true

Size: 324 Bytes

Versions: 4

Compression:

Stored size: 324 Bytes

Contents

require_relative "../test_helper"
require_relative "../../lib/message_queue/serializers/json"

class JsonTest < Test::Unit::TestCase
  def test_dump_and_load
    dump = MessageQueue::Serializers::Json.dump "foo" => "bar"
    loaded = MessageQueue::Serializers::Json.load dump
    assert_equal "bar", loaded["foo"]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
message_queue-0.1.1 test/serializers/json_test.rb
message_queue-0.1.0 test/serializers/json_test.rb
message_queue-0.0.4 test/serializers/json_test.rb
message_queue-0.0.3 test/serializers/json_test.rb