journalduhacker/spec/models
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
..
comment_spec.rb Pull short id generation into separate class 2013-01-22 23:15:05 -07:00
email_parser_spec.rb fix test after mailing_list_enabled -> mailing_list_mode change 2014-03-03 16:37:32 -06:00
message_spec.rb Use new ShortId class to generate short id 2013-01-22 23:32:45 -07:00
story_spec.rb fixed mixed indent style (should be 2 soft spaces as per project guidelines) 2013-12-23 18:19:47 -05:00
user_spec.rb Create user model tests for is_active, unban, is_banned and is_new 2014-01-19 08:50:39 -06:00
vote_spec.rb remove story downvoting, add story hiding 2014-03-03 17:20:21 -06:00