Whois body generated on live

This commit is contained in:
Priit Tark 2015-04-02 14:37:59 +03:00
parent c239460d6c
commit a393bf04cb
2 changed files with 2 additions and 4 deletions

View file

@ -236,7 +236,7 @@ class Domain < ActiveRecord::Base
# rubocop:disable Metrics/MethodLength # rubocop:disable Metrics/MethodLength
def update_whois_body def update_whois_body
new_whois_body = <<-EOS self.whois_body = <<-EOS
This Whois Server contains information on This Whois Server contains information on
Estonian Top Level Domain ee TLD Estonian Top Level Domain ee TLD
@ -261,8 +261,6 @@ class Domain < ActiveRecord::Base
changed: #{registrar.updated_at.to_s(:db)} changed: #{registrar.updated_at.to_s(:db)}
EOS EOS
return if whois_body == new_whois_body
update_column(whois_body: new_whois_body)
update_whois_server update_whois_server
end end
# handle_asynchronously :update_whois_body # handle_asynchronously :update_whois_body

View file

@ -75,7 +75,7 @@ describe Domain do
end end
it 'should not have whois_body present by default' do it 'should not have whois_body present by default' do
@domain.whois_body.present?.should == false @domain.whois_body.present?.should == true
end end
context 'with versioning' do context 'with versioning' do