mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
* Create new class called ApplicationIntegrationTest, so we don't have to override ActionDispatch::IntegrationTest * Move UI tests to inherit from ApplicationSystemTestCase * Existing REST API or EPP tests inherit from ApplicationIntegrationTest. * Move `require 'application_system_test_case'` at the end of `test_helper` I don't particularly agree with the Rails' convention of treating UI tests as system tests and API tests as integration tests, but I see no benefit in actively fighting against it.
13 lines
270 B
Ruby
13 lines
270 B
Ruby
require 'test_helper'
|
|
|
|
class AdminDomainsTestTest < ApplicationSystemTestCase
|
|
setup do
|
|
sign_in users(:admin)
|
|
end
|
|
|
|
def test_shows_details
|
|
domain = domains(:shop)
|
|
visit admin_domain_path(domain)
|
|
assert_field nil, with: domain.transfer_code
|
|
end
|
|
end
|