mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Remove reduntant test, fix REPP text
This commit is contained in:
parent
e27132bab7
commit
865e0adef8
5 changed files with 7 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue