From bb6f6cc81a838fa15c259f817a17479d2f2a5a45 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 22 Nov 2017 04:51:59 +0200 Subject: [PATCH 1/3] Update fixture --- test/fixtures/registrars.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/fixtures/registrars.yml b/test/fixtures/registrars.yml index 2d23188af..72cbb2be1 100644 --- a/test/fixtures/registrars.yml +++ b/test/fixtures/registrars.yml @@ -8,13 +8,3 @@ DEFAULTS: &DEFAULTS valid: <<: *DEFAULTS - -complete: - <<: *DEFAULTS - name: 2 - reg_no: 2 - code: 2 - website: example.com - email: info@example.com - billing_email: billing@example.com - vat_no: US12345 From 3aca9f723fcda84f88025f2d41663261c68316d6 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 22 Nov 2017 05:01:18 +0200 Subject: [PATCH 2/3] Remove test --- .../admin/registrars/create_test.rb | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 test/controllers/admin/registrars/create_test.rb diff --git a/test/controllers/admin/registrars/create_test.rb b/test/controllers/admin/registrars/create_test.rb deleted file mode 100644 index e7ee57011..000000000 --- a/test/controllers/admin/registrars/create_test.rb +++ /dev/null @@ -1,18 +0,0 @@ -require 'test_helper' - -class RegistrarsControllerTest < ActionDispatch::IntegrationTest - def setup - login_as create(:admin_user) - end - - def test_creates_new_registrar - assert_difference -> { Registrar.count } do - post admin_registrars_path, registrar: attributes_for(:registrar) - end - end - - def test_redirects_to_newly_created_registrar - post admin_registrars_path, registrar: attributes_for(:registrar) - assert_redirected_to admin_registrar_path(Registrar.first) - end -end From 5ef767ccca2c5081e957f8c6ffc508d207d1e442 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 22 Nov 2017 05:02:08 +0200 Subject: [PATCH 3/3] Update fixture --- test/fixtures/registrars.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/fixtures/registrars.yml b/test/fixtures/registrars.yml index 72cbb2be1..2d23188af 100644 --- a/test/fixtures/registrars.yml +++ b/test/fixtures/registrars.yml @@ -8,3 +8,13 @@ DEFAULTS: &DEFAULTS valid: <<: *DEFAULTS + +complete: + <<: *DEFAULTS + name: 2 + reg_no: 2 + code: 2 + website: example.com + email: info@example.com + billing_email: billing@example.com + vat_no: US12345