From 9ab43f5ca4d91b2e1b0dd6c0ec89f53cfd9657bb Mon Sep 17 00:00:00 2001 From: Jon Allured Date: Sat, 24 Feb 2024 17:00:59 -0600 Subject: [PATCH] Use consistent spec language --- spec/system/crud/csv_uploads/admin_views_csv_upload_spec.rb | 4 ++-- spec/system/crud/csv_uploads/admin_views_csv_uploads_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/system/crud/csv_uploads/admin_views_csv_upload_spec.rb b/spec/system/crud/csv_uploads/admin_views_csv_upload_spec.rb index 02e52e8e..de58662a 100644 --- a/spec/system/crud/csv_uploads/admin_views_csv_upload_spec.rb +++ b/spec/system/crud/csv_uploads/admin_views_csv_upload_spec.rb @@ -12,7 +12,7 @@ expect(page).to have_current_path crud_csv_upload_path(csv_upload) end - scenario "views CsvUpload" do + scenario "viewing a record" do csv_upload = FactoryBot.create( :csv_upload, data: "foo,bar,baz", @@ -38,7 +38,7 @@ expect(page.find("code").text).to eq csv_upload.data end - scenario "views random CsvUpload" do + scenario "views random record" do csv_upload = FactoryBot.create(:csv_upload) expect(CsvUpload).to receive(:random).and_return(csv_upload) diff --git a/spec/system/crud/csv_uploads/admin_views_csv_uploads_spec.rb b/spec/system/crud/csv_uploads/admin_views_csv_uploads_spec.rb index f9c7bcf5..cb3584d2 100644 --- a/spec/system/crud/csv_uploads/admin_views_csv_uploads_spec.rb +++ b/spec/system/crud/csv_uploads/admin_views_csv_uploads_spec.rb @@ -1,6 +1,6 @@ require "rails_helper" -describe "Admin views CsvUploads" do +describe "Admin views csv uploads" do include_context "admin password matches" scenario "from dashboard" do