From 862da02917ba37fd98bb50061992ee955d3500bd Mon Sep 17 00:00:00 2001 From: Kate Higa <16447748+khiga8@users.noreply.github.com> Date: Sun, 15 Dec 2024 18:30:09 -0500 Subject: [PATCH] Fix lint --- .../staff/external_form_upload_controller_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/controllers/organizations/staff/external_form_upload_controller_test.rb b/test/controllers/organizations/staff/external_form_upload_controller_test.rb index 75cd2b048..e6d10c676 100644 --- a/test/controllers/organizations/staff/external_form_upload_controller_test.rb +++ b/test/controllers/organizations/staff/external_form_upload_controller_test.rb @@ -12,27 +12,27 @@ class ExternalFormUploadControllerTest < ActionDispatch::IntegrationTest @adopter2 = create(:adopter, email: "no_answer_will_be_created@alta.com") sign_in admin end - + should "Creates new form submission" do assert_difference "@adopter.person.form_submissions.count" do post staff_external_form_upload_index_path, params: @params end end - + should "It does not create form answers for adopter2" do assert_no_difference "@adopter2.person.form_submissions.count" do post staff_external_form_upload_index_path, params: @params end end - + should "shows success feedback" do post staff_external_form_upload_index_path, params: @params, as: :turbo_stream - + assert_response :success assert_turbo_stream(action: "replace", count: 1) do assert_select "h5", text: "File successfully scanned" end - end + end end context "error" do @@ -40,13 +40,13 @@ class ExternalFormUploadControllerTest < ActionDispatch::IntegrationTest file = fixture_file_upload("google_form_error_sample.csv", "text/csv") @params = {files: file} admin = create(:admin) - adopter = create(:adopter, email: "adopter1234@alta.com") + create(:adopter, email: "adopter1234@alta.com") sign_in admin end should "shows error feedback" do post staff_external_form_upload_index_path, params: @params, as: :turbo_stream - + assert_response :success assert_turbo_stream(action: "replace", count: 1) do assert_select "h5", text: "File scanned: 1 error(s) present"