simple_record 1.1.47 → 1.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/simple_record.rb +1 -1
- data/test/test_simple_record.rb +3 -1
- metadata +1 -1
data/lib/simple_record.rb
CHANGED
data/test/test_simple_record.rb
CHANGED
@@ -458,9 +458,11 @@ class TestSimpleRecord < TestBase
|
|
458
458
|
mm = MyModel.new({:name=>"myname"})
|
459
459
|
mm.save
|
460
460
|
|
461
|
-
|
461
|
+
now = Time.now
|
462
|
+
mm.update_attributes(:name=>"name2", :age=>21, "date2"=>now)
|
462
463
|
assert mm.name == "name2", "Name is #{mm.name}"
|
463
464
|
assert mm.age == 21
|
465
|
+
assert mm.date2 == now
|
464
466
|
end
|
465
467
|
|
466
468
|
end
|