From 716bd57e4f1dba1f211581338bc9a35caf7de86f Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 23 Nov 2017 12:03:31 +0200 Subject: [PATCH] Update test --- test/integration/admin/registrars/new_registrar_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/admin/registrars/new_registrar_test.rb b/test/integration/admin/registrars/new_registrar_test.rb index af6e7ea41..33deea9e8 100644 --- a/test/integration/admin/registrars/new_registrar_test.rb +++ b/test/integration/admin/registrars/new_registrar_test.rb @@ -9,13 +9,15 @@ class NewRegistrarTest < ActionDispatch::IntegrationTest visit admin_registrars_path click_link_or_button 'New registrar' - fill_in 'registrar[name]', with: 'test' + fill_in 'registrar[name]', with: 'John Doe' fill_in 'registrar[reg_no]', with: '1234567' fill_in 'registrar[email]', with: 'test@test.com' fill_in 'registrar[code]', with: 'test' fill_in 'registrar[accounting_customer_code]', with: 'test' click_link_or_button 'Create registrar' + assert_current_path admin_registrar_path(Registrar.last) assert_text 'Registrar has been successfully created' + assert_text 'John Doe' end end