r888888888
6bd03ee4db
fix tests
2017-02-21 15:04:55 -08:00
Albert Yi
5404c1d231
implement postarchive
2017-02-21 13:40:52 -08:00
evazion
f971f927fd
post_test.rb: add tag name validation tests.
2017-02-08 23:31:30 -06:00
r888888888
c01f48f18c
mock pool archive service in post test
2017-02-07 14:14:36 -08:00
evazion
35b3398142
post_test.rb: add more metatag search tests.
2017-02-06 18:48:39 -06:00
evazion
3edd814be5
tests: add iqdb queries controller tests.
2017-02-06 18:48:37 -06:00
evazion
e8cf417e9c
tests: update gems to latest versions.
...
Also fix a few things that broke under shoulda-matchers 3.1.1.
2017-02-04 22:17:15 -06:00
evazion
beddc34958
tests: set Delayed::Worker.delay_jobs = false globally.
2017-02-04 17:18:51 -06:00
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
601b439f96
Add order:comment_bumped, order:comment_bumped_asc metatags.
2017-01-21 11:10:40 +00:00
Albert Yi
ee4ebce4d7
support pool version archive
2016-12-21 11:43:46 -08:00
evazion
96a38f8d1b
Test pixiv id parsing for novel/background/profile images.
2016-12-04 02:04:44 -06:00
evazion
0697af6d23
Fix #2771 : Approving deleted image doesn't create mod action.
2016-11-28 02:50:07 -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
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
Albert Yi
f158e10c37
Merge pull request #2734 from evazion/fix-negated-aliases
...
Resolve aliases when removing negated tags (fix #2730 )
2016-10-24 12:21:21 -07:00
evazion
c6294d5dfd
Resolve aliases when removing negated tags ( fix #2730 ).
2016-10-21 23:39:35 -05:00
evazion
52491f4486
Fix @artist.ban! test case.
...
Must use an admin in this test now because admin privileges are needed
to create the `banned_artist` tag implication.
(fixes regression in 7e3284c )
2016-10-21 19:59:02 -05:00
evazion
8b46726166
Fix tests for before_validation :normalize_tags.
...
`update_attribute` doesn't trigger `before_validation` callbacks, which
is where metatag processing happens. `update` or `update_attributes`
must be used instead.
AFAIK the test suite is the only place where `post.update_attribute(:tag_string => "stuff")`
is used, the actual code doesn't use it.
2016-10-21 19:59:02 -05:00
evazion
0b7cd71d42
Add some tests for tagging posts with metatags.
...
Exercise a few bugs:
* rating:safe should obey on rating locks.
* source:blah should update the pixiv id.
* source:" foo bar baz " should trim leading/trailing whitespace.
The other tests are for metatags that work but didn't have tests.
2016-10-21 19:59:01 -05:00
evazion
88248e7ec7
Add tests for reverting rating-locked posts.
2016-10-19 20:06:43 -05:00
evazion
d2a0b089f4
Add test for setting invalid ratings.
2016-10-19 20:06:43 -05:00
evazion
3838167dc0
Post#unvote!: Return correct score ( fixes #2709 ).
...
vote.destroy sets the score in the database but not on the in-memory
post. So just reload the post from the db to get the updated score,
don't duplicate the logic of setting it again.
2016-10-08 09:07:41 +00:00
evazion
ab5fd48280
Prevent mass assignment to Post#last_noted_at ( #2704 ).
2016-10-06 09:39:57 +00:00
evazion
f4f85bd0d8
Add tests for setting pixiv_id on posts.
2016-10-03 02:29:41 +00:00
r888888888
110569708e
fix tests
2016-05-26 13:17:18 -07:00
r888888888
2a87aad34e
implement super voters
2016-02-22 14:11:25 -08:00
r888888888
ce3af81c9f
fix tests
2016-01-18 17:13:26 -08:00
Toks
cd8bc87fa4
Don't allow new users to remove tags
...
fixes #2427
2015-12-05 16:16:19 -05:00
r888888888
21ab11d92a
add support for saved search metatag + tests
2015-11-24 12:55:18 -08:00
r888888888
341b29ce41
fix tests
2015-08-18 17:40:53 -07:00
Toks
eb1d920c17
#2489 fix src redirect
2015-08-11 20:29:32 -04:00
r888888888
9dfaad7c98
fixes #2489 : Hentai-Foundry image source update for artist finder
2015-08-11 13:48:19 -07:00
r888888888
abb232d4e6
fixes #2448 : Approvers can undelete posts they already approved/uploaded
2015-07-24 14:19:40 -07:00
r888888888
dc34c68353
fixes #2427 : Prevent removing all tags from post
2015-07-21 14:21:11 -07:00
r888888888
6ad6aa44c4
fixes #2432 , fix tests
2015-07-14 15:13:04 -07:00
r888888888
8ef7462b6b
fix tests
2015-07-06 18:32:54 -07:00
r888888888
45ffe0b68e
fixes #2386 , fix tests
2015-05-21 11:57:08 -07:00
r888888888
5063e326e3
Revert "remove mpixel search, remove some unused indexes on posts"
...
This reverts commit 11e550c385 .
2015-01-18 22:56:02 -08:00
r888888888
11e550c385
remove mpixel search, remove some unused indexes on posts
2015-01-15 17:43:10 -08:00
evazion
24dcf0090a
Add a few more tests for Pixiv source redirection.
2014-10-27 19:00:57 -05:00
Albert Yi
c1b3060df3
Merge pull request #2283 from evazion/fix-exact-filesize-search
...
Fix #2248 : filesize metatag: exact match if unit is bytes
2014-10-26 16:32:22 -07:00
Toks
4519d026d7
Merge pull request #2282 from evazion/feat-autotag-ugoira
...
Automatically add ugoira tag to ugoira posts.
2014-10-26 15:14:10 -04:00
Toks
3194df7e85
Add more cases for normalizing pixiv source searches
2014-10-25 15:49:59 -04:00
evazion
79ec817bdc
Add tests for filesize: metatag searches.
2014-10-24 22:32:32 -05:00
evazion
9bbb272b34
Automatically add ugoira tag to ugoira posts.
...
Note that this only adds the ugoira tag to .zip posts. It does not
remove the ugoira tag for posts converted from ugoira, but that aren't
true ugoira.
2014-10-24 22:15:43 -05:00
r888888888
fad0ab7c93
fixes #2133
2014-04-16 17:43:34 -07:00
Toks
6aedbcdc6e
fixes #2049
2014-01-11 14:34:03 -05:00
Toks
4ddf8d5eab
#1866 : Support dA urls without artist name in them
2013-12-24 16:47:41 -05:00