diff --git a/spec/models/contact_spec.rb b/spec/models/contact_spec.rb index daa6c4963..1bb2af44d 100644 --- a/spec/models/contact_spec.rb +++ b/spec/models/contact_spec.rb @@ -81,6 +81,11 @@ describe Contact do end context 'with callbacks' do + before :all do + Contact.set_callback(:create, :before, :generate_code) + Contact.set_callback(:create, :before, :generate_auth_info) + end + before(:each) { @contact = Fabricate.build(:contact, code: '123asd', auth_info: 'qwe321') } context 'after create' do