Sha256: 168a16ae9cf958d2054ef47bb66a6a5f1465fcc74aabb65f4f5ad85d828ffd25

Contents?: true

Size: 466 Bytes

Versions: 8

Compression:

Stored size: 466 Bytes

Contents

# encoding: utf-8
require 'test_helper'

class TestMongoidAdapter < MiniTest::Unit::TestCase

  def test_serializers
    assert_equal 'BR', Country.allocate.serialize(Country.find('BR'))
    assert_equal 'BR-PR', Territory.allocate.serialize(Territory.find('BR-PR'))
  end
  
  def test_deserializers
    assert_equal Country.find('BR'), Country.allocate.deserialize('BR')
    assert_equal Territory.find('BR-PR'), Territory.allocate.deserialize('BR-PR')
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uncharted-0.0.16 test/mongoid_test.rb
uncharted-0.0.15 test/mongoid_test.rb
uncharted-0.0.14 test/mongoid_test.rb
uncharted-0.0.13 test/mongoid_test.rb
uncharted-0.0.12 test/mongoid_test.rb
uncharted-0.0.11 test/mongoid_test.rb
uncharted-0.0.10 test/mongoid_test.rb
uncharted-0.0.9 test/mongoid_test.rb