Commit Graph
490 Commits
Author SHA1 Message Date
r888888888 39ce77bbb1 fix nico seiga tests 2014-12-04 22:58:27 -08:00
r888888888 f9c341a794 dont recreate artist urls that havent changed 2014-12-03 15:01:22 -08:00
r888888888 02c07fefb2 fix tests 2014-12-03 14:07:42 -08:00
evazion 57bb51621e Add debugger gem.
Fix random VCR failures in Pixiv tests.

Sometimes tests randomly fail because the PHPSESSID they use in their
HTTP requests to Pixiv is different than the one that was originally
recorded by VCR. This causes VCR to complain that the requests don't
match.

This is caused by the PHPSESSID being globally cached in Memcache.
Depending on the order the tests run in (which is random), one set of
tests can use a PHPSESSID that was recorded for a /different/ set of
tests.

Improve Pixiv URL matching.

* Allow URLs that are missing the http:// part. These are sometimes seen
  in artist entries.
* Ignore URLs from random Pixiv domains such as dic.pixiv.net,
  blog.pixiv.net, etc. These are also sometimes in artist entries.

Improve normalize_for_artist_finder! URL matching.

* Normalize www.pixiv.net/stacc/username URLs.
* Correctly normalize URLs that are missing the illust ID part on the end
  (i.e. http://i2.pixiv.net/img04/img/syounen_no_uta/). These are common
  in artist entries.

Match URLs strictly when normalizing for artist entries.

Only normalize Pixiv URLs that strictly match a known format. Pass any
unrecognized URLs through without attempting to normalize them, just to
be safe.

Normalize URLs when saving artist entries.
2014-12-03 13:16:05 -08:00
r888888888 cdd17de0af implement coinbase tests 2014-11-29 13:14:46 -08:00
r888888888 d9153769b8 remove stripe references 2014-11-24 19:13:21 -08:00
r888888888 2b5ce48d5c fixes #2230 2014-11-19 21:28:26 -08:00
r888888888 177ef0ebcc fixes #2307 2014-11-19 17:17:26 -08:00
Toks e6e6b2fe1c fixes #2095 2014-11-18 15:13:43 -05:00
r888888888 9a260eecb9 fix tests 2014-11-07 15:03:00 -08:00
r888888888 fa91812910 add tests for upgrade controller 2014-11-06 17:43:10 -08:00
r888888888 cbf48ad948 add stripe integration for safebooru 2014-11-06 17:03:17 -08:00
Toks 095d02414c Exempt deletions from dupe flag checking 2014-10-31 20:01:42 -04:00
r888888888 16f9a61d63 fixes #2299 2014-10-29 15:14:17 -07:00
evazion 9f96965bb4 Add test case for rewriting ugoira URLs. 2014-10-28 22:57:00 -05:00
Toks bcedb0b27b Merge pull request #2290 from evazion/fix-ugoira-source-redirection
Fix ugoira source redirection
2014-10-28 00:48:17 -04:00
Toks 8d365b914d fixes #1473 2014-10-27 23:55:18 -04: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 8d4c9d7955 fix pixiv tests 2014-10-22 17:22:36 -07:00
r888888888 3bb06c2be4 integrate ugoiras into zip+webm+preview 2014-10-19 02:30:02 -07:00
r888888888 fb2219d4ac integrate ugoira converted into upload flow 2014-10-19 02:30:01 -07:00
r888888888 50730c6d0d implement ugoira converter 2014-10-19 02:30:01 -07:00
evazion a36472f35b Add artist finding tests for new Pixiv URLs.
* Add tests for finding artists using the new Pixiv URLs in Artist#find_all_by_url.
* Add tests for the artist finder JSON API in ArtistsController#finder.
* Add tests for the artist page search form in ArtistsController#index.
2014-10-05 14:11:31 -05:00
evazion 8e2be03a6b Fix upload tests to use VCR. 2014-10-05 14:11:31 -05:00
evazion f22cb52dde Regenerate VCR cassettes for new tests. 2014-10-04 12:45:37 -05:00
evazion 339e88584d Rewrite tests for downloading new Pixiv URLs.
* Test that downloading the HTML page downloads the full size image
  instead.
* Test that downloading a small or medium size image downloads the
  full size instead.
* Test the above for both single illustrations and for manga galleries,
  for new and old posts (i.e. uploaded before the Pixiv URL changes versus
  after), and for different file extensions.
* Test trying to download ugoira zip files. These tests are expected to
  fail because we don't support ugoira yet.
* Also add some more tests for fetching source data.
2014-10-04 12:45:37 -05:00
evazion 268f79c3d9 Make VCR disallow unexpected HTTP requests.
This makes it so that tests fail when they make HTTP requests they
aren't expected to. Update these tests so that they use VCR like they
should.
2014-10-04 12:45:37 -05:00
r888888888 74e1355728 fix tests 2014-09-30 17:24:54 -07:00
r888888888 2b96040a30 fixes #2191 2014-08-12 17:03:16 -07:00
r888888888 6772566665 fixes #2166 2014-07-23 15:15:47 -07:00
r888888888 c1a4bfda55 allow editing of pending aliases/implications 2014-07-18 14:49:08 -07:00
r888888888 bb402f5a27 fixes #2197 2014-07-17 16:34:54 -07:00
r888888888 2aa9288d52 fixes #1678 2014-06-20 17:36:19 -07:00
r888888888 f65691b5e6 fix tests 2014-06-18 16:51:55 -07:00
r888888888 f02f72fac1 implement saved searches, move user boolean settings to bitprefs 2014-06-18 16:16:27 -07:00
r888888888 4ab6a2417f fixes #2199 2014-06-17 18:07:19 -07:00
r888888888 87ef2b8e0f fixes #2190 2014-06-16 17:29:35 -07:00
r888888888 82c08c9faf fixes #2192 2014-06-16 17:04:26 -07:00
r888888888 58a0086e69 potential fix for #2192 2014-06-12 21:41:37 -07:00
r888888888 7b97ca192c fixes #2190 2014-06-12 21:16:21 -07:00
r888888888 87c8401693 #982: add test case for newlines 2014-06-03 15:26:28 -07:00
r888888888 331377a32b implements #982 2014-06-03 15:23:16 -07:00
Toks 3dd6b787c8 Update test 2014-05-30 13:27:34 -04:00
Toks 055d0eecd3 Remove redundant promoter name from user feedback
Feedbacks already keep track of who created them so it doesn't need to
be in the body too
2014-04-30 21:18:18 -04:00
Toks 76d1f0a66b Update seiga and pixiv source tests, and seiga vcr cassettes
fixes #2142
2014-04-30 15:26:58 -04:00