Created
April 4, 2014 18:56
-
-
Save soulcutter/9980997 to your computer and use it in GitHub Desktop.
I guess you have to understand the implementation to understand this error…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe ActiveSupport::TimeZone do | |
it "has an invalid fraction, clearly" do | |
rub_a_dub_double = double.as_null_object | |
ymd = [rub_a_dub_double.year, rub_a_dub_double.month, rub_a_dub_double.day] | |
ActiveSupport::TimeZone['UTC'].local(*ymd) # ArgumentError: invalid fraction | |
Date.new(*ymd) # => ArgumentError: invalid date -- now that makes sense | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Leaflet