Peter Bhat Harkins
b45d175083
add brakeman
...
Wrote ignore notes and specs for the security assumptions implied.
Removed TZ from moderations table; everything is Chicago time, best time.
2023-12-17 20:22:47 -06:00
Peter Bhat Harkins
237e219116
standardrb: add standard-sorbet
2023-09-14 08:45:21 -05:00
Peter Bhat Harkins
c3f8625788
standardrb
...
I can't take Rubocop any more. Moving up to Ruby 3 forces us to update RuboCop,
and it comes with dozens of linters that I'd have to evaluate, none of which is
a marginal improvement. I'm done having opinions.
2023-09-08 15:39:50 -05:00
Peter Bhat Harkins
a475d9b593
tests, frontend for previous
2022-05-25 09:31:16 -05:00
ugla
8e0f47fa9e
Allow gemini and gopher homepage URLs ( #944 )
2022-01-22 03:52:22 +00:00
Dorian Marié
cc19708575
rake fake_data - generate old enough accounts ( #981 )
2021-05-18 17:11:01 +00:00
Andrew
8566e7d286
Fix test ( #842 )
2020-05-06 02:16:33 +00:00
Peter Bhat Harkins
9d09ca98b7
prohibit stories from new domains by new users
2020-02-10 13:34:41 -06:00
Maurice Wahba
974b44595e
Add validations for vote, story, user ( #758 )
2020-02-05 06:54:35 -08:00
Peter Bhat Harkins
0bc2cf4fc0
fix: allow subdomains on homepage
2019-06-11 09:29:13 -05:00
Martin Tournoij
860d95d59b
Add homepage field ( #671 )
...
Using URI.parse with IDN/non-ASCII URLs won't work, and as far as I can
find there is no stdlib way of doing it. This regexp should be good enough
and not reject any valid URLs.
Closes #669
2019-05-08 14:17:10 +00:00
David Wolgemuth
6799938325
replace abandoned Machinist gem with FactoryBot
...
PR #507
2018-06-14 08:34:59 -05:00
Peter Bhat Harkins
84afc544fa
invitations: track new_user
2018-05-10 08:48:55 -05:00
Peter Bhat Harkins
c0393457a4
update to current rspec-rails integration style
2018-03-21 15:37:41 -05:00
Peter Bhat Harkins
c004ffd6a0
rubocop: Rails/TimeZone, 339
...
Pretty strictly-worded warning about preventing bugs. I guess it doens't hurt
to have timestamps saved as UTC instead of US/Central.
2018-03-18 19:08:54 -05:00
Peter Bhat Harkins
a15c5d540e
rubocop: Metrics/*, 655
...
Turned off everything but LineLength, which I bumped to 100 and manually
tidied.
2018-03-17 14:05:46 -05:00
Andrew Shu
3fdaecbb02
user: add method is_heavy_self_promoter?
2017-10-23 11:49:00 -07:00
hmadison
7d51b5032a
Revert "Don't make a test user if there already is one."
...
This reverts commit bbdcb1a395f1ccbf0a4dc39ed325080f85d2065e.
2017-10-05 17:57:38 -04:00
Hunter Madison
00eb0e967d
Don't make a test user if there already is one.
2017-10-05 17:57:38 -04:00
Adam Hess
0cb4048dd6
update rspec syntax ( #366 )
...
the :should syntax is no longer supported. Now we use the modern :expect syntax
2017-06-13 10:10:02 -05:00
joshua stein
138c658052
cleanup tests
...
i am not going to waste any more time cleaning up these specs that
were written by other people to be so crafty that they break or spew
tons of garbage every time something is updated.
2015-12-03 15:03:23 -06:00
joshua stein
80f7d5b095
remove or fix failing tests
...
Many of these fail because they were written with fancy rspec
features that don't work properly anymore and I don't care enough
about testing everything to update them.
See issue #228
2015-10-11 13:00:34 -05:00
Drew Butler
544a521c78
Create user model tests for is_active, unban, is_banned and is_new
2014-01-19 08:50:39 -06:00
Drew Butler
2cd248d122
Test-user receives message after registering banned username
2014-01-18 13:32:57 -06:00
joshua stein
fecc2ef5bb
add test for bad email address
2012-12-16 19:59:34 -06:00
joshua stein
1bf98318c8
write some basic tests
2012-08-24 10:57:10 -05:00