mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28:27 +02:00
Fix contact creator link
This commit is contained in:
parent
df0fd3dadf
commit
96b59bfb4c
4 changed files with 23 additions and 3 deletions
14
test/helpers/application_helper_test.rb
Normal file
14
test/helpers/application_helper_test.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ApplicationHelperTest < ActionView::TestCase
|
||||
def test_creator_link
|
||||
model = contacts(:william)
|
||||
assert_nothing_raised do
|
||||
ApplicationController.helpers.creator_link(model)
|
||||
end
|
||||
|
||||
assert_nothing_raised do
|
||||
ApplicationController.helpers.updator_link(model)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,10 +25,16 @@ class AdminContactsTest < ApplicationSystemTestCase
|
|||
assert_text('william-001')
|
||||
assert_text('william-002')
|
||||
assert_text('acme-ltd-001')
|
||||
assert_text(@contact.name)
|
||||
assert_text(@contact.code.to_s)
|
||||
assert_text(@contact.email)
|
||||
assert_text(@contact.registrar.name)
|
||||
end
|
||||
|
||||
def test_display_details
|
||||
visit admin_contact_path(@contact)
|
||||
assert_nothing_raised do
|
||||
visit admin_contact_path(@contact)
|
||||
end
|
||||
|
||||
assert_text('Street Main Street City New York Postcode 12345 ' \
|
||||
'State New York State Country United States of America')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue