fixed integer vs string expectation

This commit is contained in:
Thilo Rusche 2011-05-13 17:47:59 +01:00
parent b4c1a39343
commit ac90ab96cd

View File

@ -56,7 +56,7 @@ module ValidatesTimeliness
values = [nil] * 6 values = [nil] * 6
pairs.map do |(param, value)| pairs.map do |(param, value)|
position = param.scan(/\(([0-9]*).*\)/).first.first position = param.scan(/\(([0-9]*).*\)/).first.first
values[position.to_i-1] = value values[position.to_i-1] = value.to_i
end end
TimelinessDateTime.new(*values) TimelinessDateTime.new(*values)