Fixed issue with NullString JSON unmarshalling.

Updated Measurements.Notes test.
This commit is contained in:
Matthew Dillon 2015-01-08 15:51:50 -09:00
parent 7da59ffef2
commit 7b7f519c01
4 changed files with 10 additions and 3 deletions

View file

@ -14,6 +14,7 @@ func newMeasurement() *models.Measurement {
measurement.CharacteristicId = 3
measurement.TextMeasurementTypeId = models.NullInt64{sql.NullInt64{Int64: 4, Valid: false}}
measurement.UnitTypeId = models.NullInt64{sql.NullInt64{Int64: 5, Valid: true}}
measurement.Notes = models.NullString{sql.NullString{String: "a note", Valid: true}}
return measurement
}