evazion
a327854017
Fix post_update_count increment test.
...
7) Failure:
PostTest#test_: Tagging: A post that has been updated should increment the updater's post_update_count. [/home/danbooru/src/danbooru/test/unit/post_test.rb:1010]:
"CurrentUser.post_update_count" didn't change by 1.
Expected: 1
Actual: 3
2017-02-03 04:04:02 -06:00
evazion
27817cffcf
Fix saved search test.
...
16) Failure:
SavedSearchTest#test_: Fetching the post ids for a search with a name should return a list of ids. [/home/danbooru/src/danbooru/test/unit/saved_search_test.rb:31]:
Expected: [1, 2, 3, 4]
Actual: []
2017-02-03 04:03:44 -06:00
evazion
ace7d0c12d
Fix moving saved searches tests.
...
4) Failure:
TagAliasTest#test_: A tag alias should move saved searches. [/home/danbooru/src/danbooru/test/unit/tag_alias_test.rb:80]:
Expected: "123 bbb 456"
Actual: "123 ... 456"
36) Failure:
Moderator::TagBatchChangeTest#test_: a tag batch change should move saved searches. [/home/danbooru/src/danbooru/test/unit/moderator/tag_batch_change_test.rb:40]:
Expected: "123 456 bbb"
Actual: "123 ... 456"
2017-02-03 04:03:44 -06:00
evazion
72502dbe2f
Fix comment voting tests.
...
2) Error:
CommentTest#test_: A comment created by an unlimited user should not allow duplicate votes. :
ActiveRecord::RecordInvalid: Validation failed: You have already voted for this comment
app/models/comment.rb:142:in `vote!'
test/unit/comment_test.rb:164:in `block (3 levels) in <class:CommentTest>'
3) Error:
CommentTest#test_: A comment created by an unlimited user should not allow upvotes by the creator. :
ActiveRecord::RecordInvalid: Validation failed: You cannot upvote your own comments
app/models/comment.rb:142:in `vote!'
test/unit/comment_test.rb:179:in `block (3 levels) in <class:CommentTest>'
2017-02-03 04:03:44 -06:00
evazion
3ee7f0770f
Fix posts controller api test.
...
1) Failure:
PostsControllerTest#test_: The posts controller for api calls passing the api limit should work. [/home/danbooru/src/danbooru/test/functional/posts_controller_test.rb:34]:
Expected response to be a <429>, but was <200>.
Expected: 429
Actual: 200
2017-02-03 04:03:43 -06:00
r888888888
1207faa600
fix tests
2017-01-24 16:05:06 -08:00
r888888888
f78160827f
remove unused config
2017-01-24 13:13:13 -08:00
evazion
601b439f96
Add order:comment_bumped, order:comment_bumped_asc metatags.
2017-01-21 11:10:40 +00:00
evazion
66e30b323c
Name changes: remove delete request button.
2017-01-15 05:03:08 +00:00
evazion
cf046eecbf
Fix ip addr search tests.
2017-01-12 09:28:52 +00:00
Albert Yi
f2a5d45db0
implement token bucket rate limiting
2017-01-09 17:31:14 -08:00
Albert Yi
b9a1e115fb
add additional mod actions
2017-01-03 16:02:36 -08:00
Albert Yi
0ea7d78584
remove usage of vcr cassettes; delete unused fixtures; fix some broken unit tests
2016-12-28 15:47:28 -08:00
Albert Yi
b2296cab70
bug fix for saved search update on tag batch changes
2016-12-28 12:40:00 -08:00
Albert Yi
3ad639521f
fixes #2805 : Improve nico seiga support
2016-12-27 16:11:22 -08:00
evazion
0e73f3c8a9
Add tests for stickying comments.
2016-12-26 23:52:46 -06:00
Albert Yi
5a1ac41450
eliminate transaction log items table
2016-12-21 15:00:59 -08:00
Albert Yi
62956be384
hide saved search functionality if not enabled
2016-12-21 14:53:39 -08:00
Albert Yi
ee4ebce4d7
support pool version archive
2016-12-21 11:43:46 -08:00
evazion
a92120e873
Fix #2785 : Allow changing API key; require password to view or change key.
2016-12-18 06:30:48 -06:00
Albert Yi
4eb0a64135
fix exploit for viewing private dmails
2016-12-06 14:34:46 -08:00
Albert Yi
b0f2b1e8dd
Merge pull request #2782 from evazion/fix-2779
...
Fix #2779 : Erroneous pixiv_id parsed for novel/background/profile images
2016-12-05 11:44:38 -08:00
evazion
e7bc3048ed
Test downloading pixiv profile/background/novel images.
2016-12-04 02:04:44 -06:00
evazion
96a38f8d1b
Test pixiv id parsing for novel/background/profile images.
2016-12-04 02:04:44 -06:00
evazion
01afc46f74
Fix failures in commenting tests.
...
Restricting users from upvoting their own comments broke some tests.
Switch these tests to downvoting instead.
2016-12-03 20:06:50 -06:00
Albert Yi
5c761d4a60
Merge pull request #2775 from evazion/fix-user-feedbacks
...
Prevent mods from editing/deleting feedbacks given to themselves.
2016-11-28 12:02:47 -08:00
evazion
bba080a4c5
Test mod deletion of user feedbacks.
2016-11-28 03:57:23 -06:00
evazion
0697af6d23
Fix #2771 : Approving deleted image doesn't create mod action.
2016-11-28 02:50:07 -06:00
Albert Yi
0b9c1e1156
Merge pull request #2759 from evazion/fix-dmail-filters
...
Don't filter dmails from moderators; fix dmail filter exploit.
2016-11-14 16:27:17 -08:00
Albert Yi
536ba3c7ee
fixes #2756 : Have @Mentions Use Relative Instead of Absolute Links
2016-11-14 10:15:11 -08:00
evazion
47f663e002
Don't filter dmails from moderators ( fix #2757 ).
2016-11-12 01:11:40 -06:00
evazion
2dadad395b
Add test for setting dmail filters on other people.
2016-11-12 01:10:14 -06:00
Albert Yi
30899b7d3b
Merge pull request #2753 from evazion/feat-autotag-cosplay
...
Autotag character_(cosplay) -> character, cosplay.
2016-11-11 16:48:30 -08:00
Albert Yi
ed6b48b0bc
Merge pull request #2754 from evazion/fix-comment-selfvotes
...
Prevent users from upvoting their own comments.
2016-11-11 16:46:50 -08:00
Albert Yi
eb6746a8a8
additional checks on forum topic visibility
2016-11-07 10:48:04 -08:00
evazion
1047d7c96b
Prevent users from upvoting their own comments.
2016-11-06 01:32:54 -06:00
evazion
f02a31a447
Autotag character_(cosplay) -> character, cosplay.
...
Make e.g. hatsune_miku_(cosplay) automatically add hatsune_miku and cosplay.
Perform autotagging after aliasing so that *_(cosplay) aliases (e.g.
hestia_(dungeon)_(cosplay) -> hestia_(danmachi)_(cosplay)) can take
effect first.
2016-11-04 23:37:28 -05:00
Albert Yi
91793fff82
fixes #2731 : Expunged posts should clear favorite groups
2016-11-01 13:44:36 -07:00
Albert Yi
cb1c694074
fix test
2016-11-01 13:28:31 -07:00
Albert Yi
2dbb869188
keep track of post approvals to prevent approval cycles
2016-10-31 17:51:44 -07:00
evazion
6a9b68022a
Test /forum_posts?search[creator_id]=1.
2016-10-31 17:11:52 -05:00
Albert Yi
a862c5bf03
fixes #2746 : Uploading from touch.pixiv.net broken
2016-10-31 12:22:32 -07:00
evazion
4e9f7391e6
Test private topics don't bump forum.
2016-10-30 18:00:26 -05:00
evazion
88a8c02f4c
Test /forum_posts doesn't list private forum topics.
2016-10-30 18:00:26 -05:00
Albert Yi
597d724832
add api limiter test
2016-10-27 10:48:59 -07:00
Albert Yi
8e87d41a3c
Merge pull request #2739 from evazion/fix-tag-alias
...
Fix "conflicting wikis" message; fix alias/implication approvers in BURs (#2715 )
2016-10-27 10:44:51 -07:00
evazion
8672604ee7
Add upvote:/downvote: editing metatags.
2016-10-26 23:23:47 -05:00
evazion
8b5aac7808
Add locked:{notes,status,rating} editing metatags ( fix #1716 ).
2016-10-26 23:23:09 -05:00
evazion
0dcd7e82be
Test forum posts generated by tag alias approval.
2016-10-26 21:52:19 -05:00
evazion
1e9bcf75de
Test banning artist sets approver of banned_artist implication.
2016-10-26 21:52:19 -05:00