Dynamic validations example

This commit is contained in:
Martin Lensment 2014-08-18 14:54:46 +03:00
parent 0c5b7c4cb8
commit 415f109d8f
7 changed files with 75 additions and 48 deletions

View file

@ -4,7 +4,10 @@ describe 'EPP Domain', epp: true do
let(:server) { server = Epp::Server.new({server: 'localhost', tag: 'gitlab', password: 'ghyt9e4fu', port: 701}) }
context 'with valid user' do
before(:each) { Fabricate(:epp_user) }
before(:each) do
Fabricate(:epp_user)
Fabricate(:domain_validation_setting_group)
end
it 'returns error if contact does not exists' do
Fabricate(:contact, code: 'jd1234')