Refactor + tests

This commit is contained in:
Martin Lensment 2015-05-20 13:49:34 +03:00
parent dc1ad9e6c5
commit 19e133ec6a
7 changed files with 37 additions and 25 deletions

View file

@ -2,7 +2,7 @@ require 'rails_helper'
describe Repp::AccountV1 do
it 'should fail without whitelisted IP' do
@registrar1 = Fabricate(:registrar, white_ips: [Fabricate(:white_ip)])
@registrar1 = Fabricate(:registrar, white_ips: [Fabricate(:white_ip_epp), Fabricate(:white_ip_registrar)])
@api_user = Fabricate(:api_user, registrar: @registrar1)
get_with_auth '/repp/v1/accounts/balance', {}, @api_user