File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
2
# fugit credits
3
3
4
+ * https://github.com/personnumber3377 , gh-104 Fugit.parse choke on long input
4
5
* Michael Scrivo, https://github.com/mscrivo , gh-103
5
6
* Benjamin Darcet, https://github.com/bdarcet gh-95 gh-96 et-orbi #rweek
6
7
* https://github.com/franckduche gh-95 gh-96 et-orbi #rweek
Original file line number Diff line number Diff line change 117
117
o , d = do_time {
118
118
Fugit . parse ( '0 0' + ' 0' * 10_000 + ' 1 jan * UTC' ) }
119
119
120
- expect ( o ) . to be ( nil )
121
- expect ( d ) . to be < 0.042
120
+ expect ( d ) . to be < 0.1
121
+ expect ( o ) . to be nil
122
122
end
123
123
end
124
124
154
154
err
155
155
end }
156
156
157
+ expect ( d ) . to be < 0.1
158
+
157
159
expect ( r . class ) . to be (
158
160
ArgumentError )
159
161
expect ( r . message ) . to eq (
160
162
'invalid cron string "0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... len 20015"' )
161
-
162
- expect ( d ) . to be < 0.042
163
163
end
164
164
end
165
165
You can’t perform that action at this time.
0 commit comments