Sha256: 143617c9735c352e7f9cb9d84f7f6a0c67da2f30ac8ccdb3cfeb5777251ffd78
Contents?: true
Size: 432 Bytes
Versions: 6
Compression:
Stored size: 432 Bytes
Contents
require File.expand_path('../abstract_unit', __FILE__) class TestEqual < ActiveSupport::TestCase fixtures :departments def test_json department = Department.first assert_equal('{"department_id":1,"location_id":1}', department.to_json) end def test_serializable_hash department = Department.first assert_equal({"department_id" => 1,"location_id" => 1}, department.serializable_hash) end end
Version data entries
6 entries across 6 versions & 1 rubygems