mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +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.
18 lines
451 B
Ruby
18 lines
451 B
Ruby
require 'test_helper'
|
|
|
|
class AdminAreaRegistrarDetailsTest < ApplicationSystemTestCase
|
|
include ActionView::Helpers::NumberHelper
|
|
|
|
setup do
|
|
sign_in users(:admin)
|
|
@registrar = registrars(:complete)
|
|
end
|
|
|
|
def test_registrar_details
|
|
visit admin_registrar_path(@registrar)
|
|
assert_text 'Accounting customer code US0001'
|
|
assert_text 'VAT number US12345'
|
|
assert_text 'VAT rate 5.0%'
|
|
assert_text 'Language English'
|
|
end
|
|
end
|