mirror of
https://github.com/zhigang1992/tsemple.git
synced 2026-04-29 13:15:25 +08:00
Reset access limiter in UserControllerTest
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
require 'test_helper'
|
||||
|
||||
class UsersControllerTest < ActionController::TestCase
|
||||
def teardown
|
||||
# reset access limiter
|
||||
$redis.flushdb
|
||||
end
|
||||
|
||||
test "should get new page" do
|
||||
get :new
|
||||
assert_response :success, @response.body
|
||||
|
||||
Reference in New Issue
Block a user