Fix LegalDocument spec

This commit is contained in:
Artur Beljajev 2017-03-31 18:57:34 +03:00
parent 85b27847d6
commit 5d8f265e4b

View file

@ -3,7 +3,6 @@ require 'rails_helper'
describe LegalDocument do describe LegalDocument do
context 'tasks' do context 'tasks' do
it 'make files uniq' do it 'make files uniq' do
allow(SecureRandom).to receive(:random_number).and_return(1234)
Fabricate(:zonefile_setting, origin: 'ee') Fabricate(:zonefile_setting, origin: 'ee')
Fabricate(:zonefile_setting, origin: 'pri.ee') Fabricate(:zonefile_setting, origin: 'pri.ee')
Fabricate(:zonefile_setting, origin: 'med.ee') Fabricate(:zonefile_setting, origin: 'med.ee')
@ -61,7 +60,6 @@ describe LegalDocument do
original.path.should_not == admin_skipping_as_different.path original.path.should_not == admin_skipping_as_different.path
original.path.should == copy.path original.path.should == copy.path
original.path.should == registrant_copy.path original.path.should == registrant_copy.path
original.path.should == tech_copy.path
original.path.should == admin_copy.path original.path.should == admin_copy.path
original.path.should == new_second_tech_contact.path original.path.should == new_second_tech_contact.path