Sha256: ccbb0f58fbc35b34fc455eb2426e5c9122f5191bca4935a315313591c98d6333
Contents?: true
Size: 431 Bytes
Versions: 62
Compression:
Stored size: 431 Bytes
Contents
require 'test_helper' module Workarea class GlobalIDTest < TestCase class TestModel include Mongoid::Document include GlobalID::Identification end def test_mongoization global_id = TestModel.create!.to_global_id assert_equal(global_id, GlobalID.demongoize(GlobalID.mongoize(global_id))) assert_equal(global_id, GlobalID.demongoize(GlobalID.mongoize(global_id.to_s))) end end end
Version data entries
62 entries across 62 versions & 1 rubygems