Sha256: 64016d46b34f97a50c3ad1bc2a173fba18af9c8e148766654665dc1cd058f551

Contents?: true

Size: 329 Bytes

Versions: 4

Compression:

Stored size: 329 Bytes

Contents

require_relative "../test_helper"

class TestMessagePackCoreExt < Minitest::Test
  def test_to_msgpack
    [nil, true, false, 10, 123456789 ** 2, 1.0, "foo", [:foo, :bar], {:a => :b}, :a, Time.now, /foo/, Date.new, DateTime.new].each do |data|
      assert_equal MessagePack.pack(data.as_json), data.to_msgpack
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
msgpack_rails-0.4.3 test/msgpack_rails/core_ext_test.rb
msgpack_rails-0.4.2 test/msgpack_rails/core_ext_test.rb
msgpack_rails-0.4.1 test/msgpack_rails/core_ext_test.rb
msgpack_rails-0.4.0 test/msgpack_rails/core_ext_test.rb