Commit Graph

38 Commits

Author SHA1 Message Date
Carl Chenet 31b9ec672f Add nofollow when host is missing 2017-05-20 15:30:51 +02:00
Carl Chenet 80c2ac5c8f Bring back the test 2017-05-20 15:28:35 +02:00
joshua stein 6537e7dc36 clean up tests 2016-05-09 09:52:47 -05:00
Derek Prior aedc24651f
Remove test for disabled functionality
Username linking was disabled in
0f498d3ee3, leaving the test suite in a
failing state. This test can be restored when the functionality is
re-introduced.
2016-03-05 17:23:11 -05:00
joshua stein a812f25c2f Markdowner: use Nokogiri for html rewriting
brute forcing changes by regexps gets things wrong sometimes, so use
nokogiri to parse the html output of rdiscount and do changes on
individual nodes, then turn back into a string

we lose the ability to move punctuation inside of auto-generated
links, but i don't see any easy/definitive way to do this properly.

closes #242
closes #209
2015-12-07 12:27:03 -06:00
joshua stein abd662fc7e add some tests for Markdowner
including failing ones for bug #209 and bug #242
2015-12-03 15:17:31 -06: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 9f9e608fc8 fix fetched_attributes fallout 2015-12-03 14:57:33 -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
joshua stein d01e9f3c3f better links for search result pagination
closes #69
2015-01-11 12:59:42 -06:00
joshua stein e3f6a4edd8 Merge pull request #163 from walle/upvoted_fix
add /upvoted page to show a logged-in user's upvoted stories
2014-08-17 19:09:04 -05:00
Fredrik Wallgren 2ffe322f64 Rename by_user to newest_by_user and sort accordingly. 2014-08-17 14:18:23 +02:00
Fredrik Wallgren ab8f8f3a72 Add upvoted route.
Upvoted route shows all stories a logged in user have upvoted
in reverse chronological order, latest upvote first.
It is not shown in the gui, but reachable at /upvoted.
2014-08-16 00:27:18 +02:00
Andrey Chernih fc52db5424 Refactor HomeController 2014-07-09 22:25:39 +04:00
Andrey Chernih 40fcb57366 Cleanup tags to avoid non-unique value SQL error 2014-07-07 11:48:42 +04:00
joshua stein 48e5a0f130 fix story test after 285fd82c 2014-03-24 10:26:06 -05:00
joshua stein 9535b05490 remove story downvoting, add story hiding
stories should either be reported for spam (coming later), upvoted,
or left alone rather than being downvoted for being uninteresting.
since users don't like leaving uninteresting things alone, they can
now hide stories from their view without affecting the story's
score.

hiding is implemented as a Vote with its vote set to 0 and the
reason set to "H"

add a /hidden url which shows all of a user's hidden stories

while i'm here, simplify Vote guts and add some tests to make sure
all the flip-flopping stuff works right
2014-03-03 17:20:21 -06:00
joshua stein 83f3604bea fix test after mailing_list_enabled -> mailing_list_mode change 2014-03-03 16:37:32 -06:00
joshua stein f9778044f0 try to strip out attributed text from incoming e-mails 2014-02-03 19:27:54 -06:00
joshua stein b75468a2c9 move inbound e-mail parsing guts into an extra, add tests for it 2014-02-03 19:06:20 -06: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
Serge Paquet 6dcb7bbf6b fixed mixed indent style (should be 2 soft spaces as per project guidelines) 2013-12-23 18:19:47 -05:00
Jon Evans 08a8165fa9 Use new ShortId class to generate short id 2013-01-22 23:32:45 -07:00
Jon Evans 0a48959cda Pull short id generation into separate class 2013-01-22 23:15:05 -07:00
joshua stein 907a18267b update to rails 3.2.10 to fix CVE-2012-5664 2013-01-02 17:18:57 -06:00
joshua stein a4e5684994 moderation log: fix tag change summary; fixes issue #43 2012-12-16 20:27:54 -06:00
joshua stein 6b0a965c66 test that a story with one real tag doesn't error out 2012-12-16 19:59:41 -06:00
joshua stein fecc2ef5bb add test for bad email address 2012-12-16 19:59:34 -06:00
joshua stein 6600d36c3b fix tests by creating tag1 and tag2 tags so story blueprint can use them 2012-11-23 13:50:09 -06:00
joshua stein edcee1bddd << strikes again 2012-08-24 11:41:37 -05:00
joshua stein c945f29040 add similar-url check for www\d*\., rewrite checker to be simpler 2012-08-24 11:41:37 -05:00
joshua stein 389b4c61ec do better at finding near-similar urls already posted recently
http -> https, trailing slash, etc.
2012-08-24 11:41:36 -05:00
joshua stein 6258cb7f75 remove leading and trailing underscores from title_as_url 2012-08-24 10:57:42 -05:00
joshua stein 8dd109c49f drop custom markdowner for rdiscount 2012-08-24 10:57:42 -05:00
joshua stein 13a584854e stories must have at least one tag 2012-08-24 10:57:10 -05:00
joshua stein 1bf98318c8 write some basic tests 2012-08-24 10:57:10 -05:00
joshua stein 093747b796 initial work on conversion from php tree 2012-06-16 20:15:46 -05:00