aboutsummaryrefslogtreecommitdiffstats
path: root/spec/integration/ip_spoofing_spec.rb
blob: 073f71ad6afd7abb031f5a4b12b50bcf050b34f4 (plain)
1
2
3
4
5
6
7
8
9
10
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