In my code I have Time.current.strftime('%Y%m%d%H%M%S%6N')
and to test that I used the Rails TimeHelpers #travel_to method.
in the tests:
travel_to Time.local(2015, 2, 2, 11, 14, 30.123456) do
...
end
The problem is that Time.current.strftime('%Y%m%d%H%M%S%6N') returns 000000 for nanoseconds when it should be 123456.
Is there a work around? I am trying not to use TimeCop gem at the moment.