mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
25 lines
557 B
Ruby
25 lines
557 B
Ruby
require 'application_system_test_case'
|
|
|
|
class AdminContactsTest < ApplicationSystemTestCase
|
|
def setup
|
|
super
|
|
|
|
@contact = contacts(:william)
|
|
sign_in users(:admin)
|
|
end
|
|
|
|
def test_display_list
|
|
visit admin_contacts_path
|
|
|
|
assert_text('william-001')
|
|
assert_text('william-002')
|
|
assert_text('acme-ltd-001')
|
|
end
|
|
|
|
def test_display_details
|
|
visit admin_contact_path(@contact)
|
|
|
|
assert_text('Street Main Street City New York Postcode 12345 ' \
|
|
'State New York State Country United States of America')
|
|
end
|
|
end
|