by doing this you basically check ActiveRecord's implementation of attribute setter/getters. It is not related to this gem at all. You assigned the datetime and you test if it is assigned properly.