Fixed tests

This commit is contained in:
Andres Keskküla 2014-10-22 12:36:32 +03:00
parent 76e19b7e90
commit f5e7f23ddf
6 changed files with 8 additions and 30 deletions

View file

@ -40,6 +40,7 @@ class DomainContact < ActiveRecord::Base
def domain_snapshot
return true if domain.nil?
return true if domain.versions.count == 0 # avoid snapshot on creation
domain.create_version
true
end