test/functional/schema.rb in mosql-0.3.2 vs test/functional/schema.rb in mosql-0.4.0

- old
+ new

@@ -139,10 +139,12 @@ before = @sequel.select(Sequel.function(:NOW)).first[:now] @specialmap.copy_data(@sequel, 'db.collection', objects.map { |o| @specialmap.transform('db.collection', o) } ) after = @sequel.select(Sequel.function(:NOW)).first[:now] rows = @sequel[:special].select.sort_by { |r| r[:_id] } + assert_instance_of(Time, rows[0][:mosql_updated]) - assert(rows[0][:mosql_updated] > before && rows[0][:mosql_updated] < after) + assert_operator(rows[0][:mosql_updated], :>, before) + assert_operator(rows[0][:mosql_updated], :<, after) end end end