Remove reduntant test, fix REPP text

This commit is contained in:
Martin Lensment 2015-05-20 17:25:09 +03:00
parent e27132bab7
commit 865e0adef8
5 changed files with 7 additions and 15 deletions

View file

@ -2,6 +2,7 @@ require 'rails_helper'
describe Repp::AccountV1 do
it 'should fail without whitelisted IP' do
ENV['webclient_ip'] = '192.188.1.1'
@registrar1 = Fabricate(:registrar, white_ips: [Fabricate(:white_ip_epp), Fabricate(:white_ip_registrar)])
@api_user = Fabricate(:api_user, registrar: @registrar1)
@ -10,6 +11,7 @@ describe Repp::AccountV1 do
body = JSON.parse(response.body)
body['error'].should == 'IP is not whitelisted'
ENV['webclient_ip'] = '127.0.0.1'
end
context 'with valid registrar' do