neocities/tests
Kyle Drake e52aa29290 Fix tempfile returning nil for empty files
This is an "monkey patch" to have Tempfile return 0 instead of nil when
a tempfile is empty. This has caused an unexplained exception in our
logs for years, and I was really surprised when I caught it, and more
surprised that nobody has ever reported it to us before.

I really think this is a bug, and have filed it as a bug on the ruby
tracker. I haven't seen any consequences (yet) to doing this, so I'm
just going to run with it and see what happens. If it blows
something up (how? what scenario?), I'll try a different approach.
2017-02-06 11:26:14 -08:00
..
acceptance Send email notifications for email and password changes 2017-02-04 11:31:48 -08:00
fabricators fixes for tests 2016-05-24 21:44:45 -04:00
files checkin of initial letsencrypt code 2016-06-16 01:42:16 -07:00
stat_logs try to fix stat_logs dir 2015-09-13 00:52:09 -07:00
workers Fix for cache purging for subdir default indexes 2017-01-29 00:00:25 -08:00
admin_tests.rb pace out the email sending 2015-06-29 13:28:59 -07:00
api_tests.rb fix for api 404 2016-10-26 21:34:53 -05:00
environment.rb Fix up index test, stub blog rss feed get 2017-01-26 00:31:22 -08:00
ext_tests.rb patch a few missing tests, deprecate server model, fix a few bugs 2014-09-12 19:09:58 -07:00
site_file_tests.rb Fix for cache purging for subdir default indexes 2017-01-29 00:00:25 -08:00
site_tests.rb major refactor of supporter structure 2016-10-18 12:47:58 -05:00
stat_tests.rb Log stats for log date, rather than processing time. Add daily total 2015-12-22 04:37:16 -06:00
tag_tests.rb forgot a line 2014-09-16 00:44:02 -07:00
tempfile_tests.rb Fix tempfile returning nil for empty files 2017-02-06 11:26:14 -08:00