Skip to content

Commit 5308d0b

Browse files
committed
cast timestamps to strings before comparing for ruby 1.8, 1.9 compatibility
1 parent 664ec99 commit 5308d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/provider/models.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def generate_chunks(records, limit)
112112
end
113113

114114
def generate_records(number, timestamp = Time.now.utc.xmlschema, sets = [], deleted = false)
115-
@earliest = timestamp.dup if @earliest.nil? || timestamp.to_s < @earliest
115+
@earliest = timestamp.dup if @earliest.nil? || timestamp.to_s < @earliest.to_s
116116
@earliest = timestamp.dup if @earliest.nil?
117117

118118
# Add any sets we don't already have

0 commit comments

Comments
 (0)