Fixed contact spec

This commit is contained in:
Priit Tark 2015-01-27 12:26:37 +02:00
parent 425e26cff3
commit 96dfbbba50

View file

@ -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