mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Fixed contact spec
This commit is contained in:
parent
425e26cff3
commit
96dfbbba50
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue