Commit Graph

8 Commits (3c5006ec7fa98ec53df619b0e6e52b3bbdb6f046)

Author SHA1 Message Date
Yamagishi Kazutoshi d10447c3a8 Use raw status code on have_http_status () 2018-04-21 21:35:07 +02:00
Emelia Smith 2e59751823 Improve require_admin! and require_staff! filters ()
Previously these returns 302 redirects instead of 403s, which meant posting links to admin pages in slack caused them to unfurl, rather than stay as a link. Additionally, require_admin! doesn't appear to be actively used, on require_staff!
2018-04-03 13:07:32 +02:00
Yamagishi Kazutoshi 1d92b90be9 Fix force_ssl conditional () 2018-01-07 15:19:23 +01:00
unarist 0f1b1d78b1 Use "match_array" only for order independent assertions () 2017-06-07 12:59:28 -04:00
Akihiko Odaki (@fn_aki@pawoo.net) 10768aa204 Spec response for forgery ()
Remove protect_from_forgery in ApiController, which is disabled by the
following skip_before_action, as well.
2017-06-01 20:56:55 +02:00
Yamagishi Kazutoshi 41fa53253c Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail) ()
* Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail)

* use climate_control
2017-05-31 17:09:17 +02:00
Akihiko Odaki bda7391221 Cover ApplicationController more in spec () 2017-05-22 17:58:57 +02:00
Akihiko Odaki aa662cecad single_user_mode? always returns boolean ()
This change also adds a specification for the method.
2017-05-22 06:00:06 +02:00