mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
Remove useless specs
This commit is contained in:
parent
6bab335f5a
commit
65a50a8db0
9 changed files with 0 additions and 152 deletions
|
@ -5,16 +5,6 @@ RSpec.describe Contact do
|
|||
create(:zone, origin: 'ee')
|
||||
end
|
||||
|
||||
context 'about class' do
|
||||
it 'should have versioning enabled?' do
|
||||
Contact.paper_trail_enabled_for_model?.should == true
|
||||
end
|
||||
|
||||
it 'should have custom log prexied table name for versions table' do
|
||||
ContactVersion.table_name.should == 'log_contacts'
|
||||
end
|
||||
end
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :example do
|
||||
@contact = Contact.new
|
||||
|
@ -28,10 +18,6 @@ RSpec.describe Contact do
|
|||
@contact.updator.should == nil
|
||||
end
|
||||
|
||||
it 'should not have any versions' do
|
||||
@contact.versions.should == []
|
||||
end
|
||||
|
||||
it 'should not accept long code' do
|
||||
@contact.code = 'verylongcode' * 100
|
||||
@contact.valid?
|
||||
|
@ -66,16 +52,6 @@ RSpec.describe Contact do
|
|||
@contact = create(:contact)
|
||||
end
|
||||
|
||||
it 'should have one version' do
|
||||
with_versioning do
|
||||
@contact.versions.reload.should == []
|
||||
@contact.name = 'New name'
|
||||
@contact.save
|
||||
@contact.errors.full_messages.should match_array([])
|
||||
@contact.versions.size.should == 1
|
||||
end
|
||||
end
|
||||
|
||||
it 'should not overwrite code' do
|
||||
old_code = @contact.code
|
||||
@contact.code = 'CID:REG1:should-not-overwrite-old-code-12345'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue