You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
irb(main):001:0> require 'timecop'
=> true
irb(main):002:0> Timecop.travel(nil) do end
=> nil
irb(main):003:0> Timecop.travel("") do end
ArgumentError: no time information in ""
from /Users/motta/.rbenv/versions/2.3.1/lib/ruby/2.3.0/time.rb:254:in `make_time'
shouldn't Timecop.travel(nil) behave in the same way as Timecop.travel("")?
What's the rationale for this choice?
I got bitten by this recently :)
The text was updated successfully, but these errors were encountered:
Hello, I find this behavior a bit odd
shouldn't
Timecop.travel(nil)
behave in the same way asTimecop.travel("")
?What's the rationale for this choice?
I got bitten by this recently :)
The text was updated successfully, but these errors were encountered: