Skip to content

Commit

Permalink
Merge pull request #265 from grzuy/test_remove_dup
Browse files Browse the repository at this point in the history
Remove request duplication in rack_attack_spec.rb
  • Loading branch information
frewsxcv authored Jan 29, 2018
2 parents d7cc491 + 73e2677 commit 9f79ab2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/rack_attack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
before { get '/', {}, 'REMOTE_ADDR' => @bad_ip }

it "should return a blocklist response" do
get '/', {}, 'REMOTE_ADDR' => @bad_ip
last_response.status.must_equal 403
last_response.body.must_equal "Forbidden\n"
end
Expand Down Expand Up @@ -67,7 +66,6 @@
before { get '/', {}, 'REMOTE_ADDR' => @bad_ip, 'HTTP_USER_AGENT' => @good_ua }

it "should allow safelists before blocklists" do
get '/', {}, 'REMOTE_ADDR' => @bad_ip, 'HTTP_USER_AGENT' => @good_ua
last_response.status.must_equal 200
end

Expand Down

0 comments on commit 9f79ab2

Please sign in to comment.