mirror of
https://github.com/internetee/registry.git
synced 2025-08-19 07:53:51 +02:00
fixed test
This commit is contained in:
parent
9e5b2743a3
commit
c183ff103c
3 changed files with 6 additions and 5 deletions
|
@ -13,7 +13,7 @@
|
||||||
- tech_contacts = @domain.tech_contacts
|
- tech_contacts = @domain.tech_contacts
|
||||||
- admin_contacts = @domain.admin_contacts
|
- admin_contacts = @domain.admin_contacts
|
||||||
- registrant = [@domain.registrant]
|
- registrant = [@domain.registrant]
|
||||||
- event = t('current_state')
|
- event = t('.current_state')
|
||||||
- creator = @domain.creator_str
|
- creator = @domain.creator_str
|
||||||
|
|
||||||
= render 'shared/title', name: @domain.name
|
= render 'shared/title', name: @domain.name
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
= event
|
= event
|
||||||
= creator
|
= creator
|
||||||
- else
|
- else
|
||||||
= t('current_state')
|
= t('.current_state')
|
||||||
= creator
|
= creator
|
||||||
.panel-body
|
.panel-body
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
.panel.panel-default{:style => "min-height:450px;"}
|
.panel.panel-default{:style => "min-height:450px;"}
|
||||||
%ul.nav.nav-pills.nav-stacked
|
%ul.nav.nav-pills.nav-stacked
|
||||||
%li{class: ('active' if @version.nil?)}
|
%li{class: ('active' if @version.nil?)}
|
||||||
= link_to t('current_state'), admin_domain_version_path(current: 1, domain_id: @domain.id)
|
= link_to t('.current_state'), admin_domain_version_path(current: 1, domain_id: @domain.id)
|
||||||
- @versions.each do |vs|
|
- @versions.each do |vs|
|
||||||
%li{class: (@version && vs.id == @version.id) && :active}
|
%li{class: (@version && vs.id == @version.id) && :active}
|
||||||
= link_to admin_domain_version_path(vs) do
|
= link_to admin_domain_version_path(vs) do
|
||||||
|
|
|
@ -13,3 +13,4 @@ en:
|
||||||
registrant: Registrant
|
registrant: Registrant
|
||||||
admin_contacts: Admin. contacts
|
admin_contacts: Admin. contacts
|
||||||
tech_contacts: Tech. contacts
|
tech_contacts: Tech. contacts
|
||||||
|
current_state: Current state
|
||||||
|
|
|
@ -23,8 +23,8 @@ class DomainVersionsTest < ApplicationSystemTestCase
|
||||||
VALUES (54, 'test_code', 'test_name', 'test@inbox.test', '8b4d462aa04194ca78840a', #{@registrar.id});
|
VALUES (54, 'test_code', 'test_name', 'test@inbox.test', '8b4d462aa04194ca78840a', #{@registrar.id});
|
||||||
|
|
||||||
INSERT INTO domains (id, name, name_puny, name_dirty, registrar_id, valid_to, registrant_id,
|
INSERT INTO domains (id, name, name_puny, name_dirty, registrar_id, valid_to, registrant_id,
|
||||||
transfer_code)
|
transfer_code, created_at, updated_at)
|
||||||
VALUES (54, 'any.test', 'any.test', 'any.test', #{@registrar.id}, '2018-06-23T12:14:02.732+03:00', 54, 'transfer_code');
|
VALUES (54, 'any.test', 'any.test', 'any.test', #{@registrar.id}, '2018-06-23T12:14:02.732+03:00', 54, 'transfer_code', '2018-04-23 15:50:48.113491', '2018-04-23 15:50:48.113491');
|
||||||
|
|
||||||
INSERT INTO log_domains (item_type, item_id, event, whodunnit, object,
|
INSERT INTO log_domains (item_type, item_id, event, whodunnit, object,
|
||||||
object_changes, created_at, session, children)
|
object_changes, created_at, session, children)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue