evazion
c0e5c400a7
tests: fix tests for Rails.cache.
2017-04-16 16:48:36 -05:00
Albert Yi
5404c1d231
implement postarchive
2017-02-21 13:40:52 -08:00
evazion
dfb8d0106d
tests: add more posts controller tests.
2017-02-06 18:48:37 -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
Albert Yi
f2a5d45db0
implement token bucket rate limiting
2017-01-09 17:31:14 -08:00
Albert Yi
2424f24fcd
return 429 for too many requests instead of 421
2016-10-18 13:33:04 -07:00
evazion
80895ef46e
Add tests for reverting to foreign versions.
2016-10-11 06:57:05 +00:00
evazion
ab5fd48280
Prevent mass assignment to Post#last_noted_at ( #2704 ).
2016-10-06 09:39:57 +00:00
r888888888
46b32448e8
fix tests
2016-01-18 17:22:27 -08:00
r888888888
1d9596d7f2
fixes #2417
2015-06-29 18:17:59 -07:00
r888888888
6772566665
fixes #2166
2014-07-23 15:15:47 -07:00
r888888888
e6fb0c3caf
fix post functional test
2013-07-25 14:37:15 -07:00
r888888888
6de808bd3b
fix forum post views
2013-06-20 16:10:37 -07:00
albert
5a0b0dfa68
fix tests
2013-04-05 17:43:01 -04:00
albert
2ac22d07cd
implement api limiting
2013-03-20 16:35:35 -07:00
albert
7470d189c3
add api authentication
2013-03-20 15:43:17 -07:00
小太
cba839ba76
Kill trailing whitespace in ruby files
2013-03-19 23:10:10 +11:00
albert
17881068e1
* Removed Pixa/Tinami sources
...
* Upgraded to Rails 3.2.3
* Fixed tests
2012-06-01 19:22:58 -04:00
albert
69044f3389
reverted post version tag change for danbooru2
2011-10-22 21:34:32 -04:00
albert
c80df378d8
fixed tests
2011-02-02 16:55:36 -05:00
albert
3ba52acfe0
added post controller test
2011-01-28 18:03:00 -05:00
albert
2053e6ad8c
* Renamed Post.find_by_tags into Post.tag_match, made into a full fledged scope
...
* Post.tag_match no longer takes an options hash (use other arel builders instead)
2011-01-28 17:40:22 -05:00
albert
683d4583ac
* Added note version controller and test
...
* Added pool version controller and test
* Refactored unit tests for post disapprovals
* Renamed PostModerationDetail to PostDisapproval
2011-01-25 18:13:05 -05:00