Commit graph

221 commits

Author SHA1 Message Date
Kyle Drake
8867765c20
Merge pull request #448 from talklittle/fix-education-tests
Fix education tests
2023-07-19 16:25:01 -05:00
Kyle Drake
10a6e1634f fix for api key generation 2023-05-11 15:55:30 -05:00
Andrew Shu
e901f599c2 Fix suggestions test being off by one sometimes
Delete the leftover Site model in an unrelated test
to fix the race condition
2023-04-30 17:55:09 -07:00
Kyle Drake
520413140d switch to webp, use png for screenshot returns and be done with the accursed rmagick forever 2023-01-21 09:39:31 -06:00
Kyle Drake
ce2f032ce8 add missing file for test 2022-12-28 09:05:21 -06:00
Kyle Drake
9bb34424ff purge cache for stripped .html files 2022-12-15 10:21:55 -06:00
Kyle Drake
e1416fd40f Merge branch 'github-actions' of https://github.com/talklittle/neocities into talklittle-github-actions 2022-11-12 13:51:51 -06:00
Kyle Drake
6ea07df6a8 fix site unblocking 2022-11-12 13:07:49 -06:00
Kyle Drake
b54b2a4818 fix when unicode is used for filename and dir 2022-11-07 11:15:17 -06:00
Kyle Drake
9c6ed2d7c5 more fixes for tests 2022-11-06 14:06:36 -06:00
Kyle Drake
e7eb6d8a2d fix for gemfile, merge conflicts, test fixes for ruby 3 2022-11-05 12:46:43 -05:00
Kyle Drake
0ca1473d22 mostly finished port to ruby3 2022-08-10 14:31:36 -05:00
Kyle Drake
75f225fd88 prevent creation of empty path with rename 2022-06-22 18:29:58 -05:00
Kyle Drake
bc0addb27b replace recaptch with hcaptcha 2021-12-03 12:04:00 -06:00
Kyle Drake
f5613d2776 Fix for nonstandard file rename with supporter accounts 2021-09-09 17:51:47 -05:00
Andrew Shu
ca1802758f Migrate from Travis CI to GitHub Actions 2021-08-12 19:45:25 -07:00
Kyle Drake
f33f661f08 clump logs into single hash before importing to database 2021-01-13 14:46:52 -06:00
Kyle Drake
780c093dd6 Move screenshots/thumbs when renaming user.
Also DRY up a bit, remove some old code. Fix an extra path slash, and fix screenshot display in dashboard.
2020-01-27 01:53:54 -08:00
Kyle Drake
368d000551 Update tests for screenshot worker url array 2020-01-27 01:22:57 -08:00
Kyle Drake
0afe4f6df3 method for unbanning 2019-12-18 20:58:59 -08:00
Kyle Drake
86df307d5f Remove unneccessary test 2019-10-09 14:57:12 -07:00
Kyle Drake
904e773d16 clean up some old gunk 2019-09-21 02:17:13 -07:00
Kyle Drake
a191da9f84 try to prevent failure when fill is too slow 2019-09-21 01:52:01 -07:00
Kyle Drake
69c32d17ed Update gems, modernize test stack, fix flaky tests 2019-09-21 01:19:47 -07:00
Kyle Drake
b966321282 patch bug where dir create didn't scrub path in db entry 2019-09-19 18:45:45 -07:00
Kyle Drake
58a09f0bd9 properly remove old test files 2019-09-19 18:45:00 -07:00
Kyle Drake
7fd75170e2 Merge branch 'master' of github.com:neocities/neocities 2019-07-01 11:21:57 -07:00
Kyle Drake
aa1ea29a89 whitelist chromedriver download incase we use future selenium driver for capybara 2019-07-01 11:19:03 -07:00
Kyle Drake
99956d762a
Merge pull request #295 from valtron/api-list-hash
api: include file sha1 hash in /api/list (#252)
2019-06-30 19:15:13 -07:00
Kyle Drake
ed5f646cdd Remove tests I can't for the life of me get to work 2019-06-30 14:49:50 -07:00
Kyle Drake
ef1f448a40 Merge branch 'site_file_rename' 2019-02-26 09:38:14 -08:00
Kyle Drake
2c5ef5195b fix for uploads with multiple directorys and same filenames 2019-02-14 09:47:31 -08:00
Kyle Drake
26aa62fcae scrub carriage return garbage 2019-02-13 22:45:28 -08:00
Kyle Drake
249ea7a2d0 Support for site file and directory renaming / moving 2019-02-03 05:05:47 -08:00
valtron
8d0e339f72 api: include file sha1 hash in /api/list (#252) 2019-01-23 18:07:17 -07:00
Kyle Drake
1fa8aa3a74 try to make capybara wait for a page load to continue running 2019-01-20 00:35:50 -08:00
Kyle Drake
b2e1c8bb61 fix for the broken stripe mock in test 2019-01-19 03:03:00 -08:00
Kyle Drake
b250b19bbb fix stat tests 2018-12-02 00:14:34 -08:00
Kyle Drake
d467e9be96 Force case insensitivity for new emails, existing.
There is a legacy bug I just caught, where many accounts would have the
same email but then have different casing. In extreme scenarios, this
would lead to them creating a new user with the same email, or having
issues with password reset and username lookup.

This doesn't merge in the existing duplicates, but makes sure to only
allow insensitive lowercase emails from here on out. It also will check
for emails in a case insensitive way for such things as resets and
logins if the sensitive lookup doesn't work.

The implementation was not wrong per se - email is supposed to be case sensitive
for usernames. But of course, nobody (nor do most/all email servers) treat
them that way, leading to confusion situations where the user sometimes
camelcases their email and then switches to lowercase later.
2017-12-08 22:13:27 -08:00
Kyle Drake
33054a8298 Update gems, remove simplecov/coveralls to prevent crashing issue 2017-12-08 22:08:50 -08:00
Kyle Drake
9d3b86302d clean up tests to reflect new purging code 2017-10-15 11:26:42 -07:00
Kyle Drake
c9ba1cf0f4 add ability to restore deleted sites 2017-06-03 23:43:05 -07:00
Kyle Drake
4d397df015 update gems, fix warning about must_equal nil test 2017-05-22 18:10:26 -07:00
Kyle Drake
bf089379aa fixes for upload hash check, catch index.html delete scenario 2017-05-21 20:16:37 -07:00
Kyle Drake
4a2926508e api: add upload_hash for checking file hash before uploading 2017-05-21 17:32:26 -05:00
Kyle Drake
9f8afbd18e ability to return api key from api using login 2017-05-13 18:31:51 -05:00
Kyle Drake
1274e9fa63 API key support 2017-05-13 18:18:34 -05:00
Kyle Drake
d6f51a1cbb fix failing tests 2017-04-02 13:59:14 -07:00
Kyle Drake
ff5e424c4b Fix missing shard_dir link in thumbnail test 2017-03-30 15:41:39 -07:00
Kyle Drake
26a53995db Clean up junk from previous tests when running new tests 2017-03-30 15:40:36 -07:00