diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-05-15 16:09:29 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-05-15 16:09:29 +0100 |
commit | 26348ce676f7ebbabcc535b2ecf00f99f8fe85c0 (patch) | |
tree | 6034dd656a0f9af152f24d6c491b5e61a7190a7d /spec/integration/ip_spoofing_spec.rb | |
parent | 851ef575cf3c55a3bb194381497b958c2a3ebf1a (diff) | |
parent | b3fa23047bf96bd6a08273c9491ac1ee3b4a3f80 (diff) |
Merge branch 'release/0.18' into wdtk
Diffstat (limited to 'spec/integration/ip_spoofing_spec.rb')
-rw-r--r-- | spec/integration/ip_spoofing_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/integration/ip_spoofing_spec.rb b/spec/integration/ip_spoofing_spec.rb new file mode 100644 index 000000000..073f71ad6 --- /dev/null +++ b/spec/integration/ip_spoofing_spec.rb @@ -0,0 +1,11 @@ +require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') + +describe 'when getting a country message' do + + it 'should not raise an IP spoofing error when given mismatched headers' do + get '/country_message', nil, { 'HTTP_X_FORWARDED_FOR' => '1.2.3.4', + 'HTTP_CLIENT_IP' => '5.5.5.5' } + response.status.should == 200 + end + +end |