Skip to content

Instantly share code, notes, and snippets.

@soulcutter
Created April 4, 2014 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulcutter/9980997 to your computer and use it in GitHub Desktop.
Save soulcutter/9980997 to your computer and use it in GitHub Desktop.
I guess you have to understand the implementation to understand this error…
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
Copy link

ghost commented Apr 4, 2014

Leaflet

Copy link

ghost commented Apr 4, 2014

Leaflet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment