Created
January 18, 2016 10:07
-
-
Save kiote/4bd73d714c86037b50e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
describe Rack::Attack, :integration do | |
include Rack::Test::Methods | |
after(:each) do | |
Rack::Attack.cache.store.clear | |
end | |
context 'admin logins' do | |
let(:limit) { 6 } | |
it 'allows logins within threshold' do | |
post '/admin/login' | |
expect(last_response.status).to eq 200 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment