From 382f6476958c21ccd916e76253a5262d29038e89 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 22 Jan 2025 10:22:41 -0600 Subject: [PATCH] Disable rspec monkeypatching --- spec/controllers/application_controller_spec.rb | 2 +- spec/controllers/spotlight/about_pages_controller_spec.rb | 2 +- spec/controllers/spotlight/appearances_controller_spec.rb | 2 +- spec/controllers/spotlight/application_controller_spec.rb | 2 +- spec/controllers/spotlight/attachments_controller_spec.rb | 2 +- spec/controllers/spotlight/browse_controller_spec.rb | 2 +- spec/controllers/spotlight/bulk_actions_controller_spec.rb | 2 +- spec/controllers/spotlight/bulk_updates_controller_spec.rb | 2 +- spec/controllers/spotlight/confirmations_controller_spec.rb | 2 +- spec/controllers/spotlight/contact_email_controller_spec.rb | 2 +- spec/controllers/spotlight/contact_forms_controller_spec.rb | 2 +- spec/controllers/spotlight/contacts_controller_spec.rb | 2 +- spec/controllers/spotlight/custom_fields_controller_spec.rb | 2 +- .../spotlight/custom_search_fields_controller_spec.rb | 2 +- spec/controllers/spotlight/dashboards_controller_spec.rb | 2 +- spec/controllers/spotlight/exhibits_controller_spec.rb | 2 +- spec/controllers/spotlight/feature_pages_controller_spec.rb | 2 +- spec/controllers/spotlight/featured_images_controller_spec.rb | 2 +- spec/controllers/spotlight/filters_controller_spec.rb | 2 +- spec/controllers/spotlight/groups_controller_spec.rb | 2 +- spec/controllers/spotlight/home_pages_controller_spec.rb | 2 +- spec/controllers/spotlight/job_trackers_controller_spec.rb | 2 +- spec/controllers/spotlight/languages_controller_spec.rb | 2 +- .../spotlight/metadata_configurations_controller_spec.rb | 2 +- spec/controllers/spotlight/pages_controller_spec.rb | 2 +- .../spotlight/resources/csv_upload_controller_spec.rb | 2 +- spec/controllers/spotlight/resources/upload_controller_spec.rb | 2 +- spec/controllers/spotlight/resources_controller_spec.rb | 2 +- spec/controllers/spotlight/roles_controller_spec.rb | 2 +- .../spotlight/search_configurations_controller_spec.rb | 2 +- spec/controllers/spotlight/searches_controller_spec.rb | 2 +- spec/controllers/spotlight/sites_controller_spec.rb | 2 +- spec/controllers/spotlight/solr_controller_spec.rb | 2 +- spec/controllers/spotlight/tags_controller_spec.rb | 2 +- spec/controllers/spotlight/translations_controller_spec.rb | 2 +- spec/controllers/spotlight/versions_controller_spec.rb | 2 +- .../spotlight/view_configurations_controller_spec.rb | 2 +- spec/features/about_page_spec.rb | 2 +- spec/features/add_contacts_spec.rb | 2 +- spec/features/add_custom_field_metadata_spec.rb | 2 +- spec/features/add_iiif_manifest_spec.rb | 2 +- spec/features/add_items_spec.rb | 2 +- spec/features/alt_text_dashboard_spec.rb | 2 +- spec/features/browse_category_spec.rb | 2 +- spec/features/confirm_email_spec.rb | 2 +- spec/features/create_exhibit_spec.rb | 2 +- spec/features/create_page_spec.rb | 2 +- spec/features/dashboard_spec.rb | 2 +- spec/features/edit_contact_spec.rb | 2 +- spec/features/edit_search_fields_spec.rb | 2 +- spec/features/exhibit_masthead_spec.rb | 2 +- spec/features/exhibit_themes_spec.rb | 2 +- spec/features/exhibits/add_tags_spec.rb | 2 +- spec/features/exhibits/custom_metadata_fields_spec.rb | 2 +- spec/features/exhibits/custom_search_fields_spec.rb | 2 +- spec/features/exhibits/edit_metadata_fields_spec.rb | 2 +- spec/features/exhibits/language_create_edit_spec.rb | 2 +- spec/features/exhibits/translation_editing_spec.rb | 2 +- spec/features/exhibits_index_spec.rb | 2 +- spec/features/home_page_spec.rb | 2 +- spec/features/import_exhibit_spec.rb | 2 +- spec/features/item_admin_spec.rb | 2 +- spec/features/javascript/about_page_admin_spec.rb | 2 +- spec/features/javascript/block_controls_spec.rb | 2 +- .../javascript/blocks/browse_group_categories_block_spec.rb | 2 +- .../javascript/blocks/featured_browse_categories_block_spec.rb | 2 +- spec/features/javascript/blocks/featured_pages_block_spec.rb | 2 +- spec/features/javascript/blocks/link_to_search_block_spec.rb | 2 +- spec/features/javascript/blocks/oembed_and_text_block_spec.rb | 2 +- spec/features/javascript/blocks/rule_block_spec.rb | 2 +- spec/features/javascript/blocks/search_result_block_spec.rb | 2 +- .../javascript/blocks/solr_documents_carousel_block_spec.rb | 2 +- spec/features/javascript/blocks/uploaded_items_block_spec.rb | 2 +- spec/features/javascript/browse_group_admin_spec.rb | 2 +- spec/features/javascript/edit_in_place_spec.rb | 2 +- spec/features/javascript/home_page_edit_spec.rb | 2 +- spec/features/javascript/metadata_admin_spec.rb | 2 +- spec/features/javascript/reindex_monitor_spec.rb | 2 +- spec/features/javascript/roles_admin_spec.rb | 2 +- spec/features/javascript/search_context_spec.rb | 2 +- spec/features/main_navigation_spec.rb | 2 +- spec/features/metadata_admin_spec.rb | 2 +- spec/features/site_masthead_spec.rb | 2 +- spec/features/slideshow_spec.rb | 2 +- spec/features/translation_scope_spec.rb | 2 +- spec/helpers/spotlight/application_helper_spec.rb | 2 +- spec/helpers/spotlight/browse_helper_spec.rb | 2 +- spec/helpers/spotlight/crop_helper_spec.rb | 2 +- spec/helpers/spotlight/crud_link_helpers_spec.rb | 2 +- spec/helpers/spotlight/main_app_helpers_spec.rb | 2 +- spec/helpers/spotlight/masthead_helper_spec.rb | 2 +- spec/helpers/spotlight/meta_helper_spec.rb | 2 +- spec/helpers/spotlight/pages_helper_spec.rb | 2 +- spec/helpers/spotlight/roles_helper_spec.rb | 2 +- spec/helpers/spotlight/search_configurations_helper_spec.rb | 2 +- spec/helpers/spotlight/title_helper_spec.rb | 2 +- spec/jobs/spotlight/add_tags_job_spec.rb | 2 +- spec/jobs/spotlight/add_uploads_from_csv_spec.rb | 2 +- spec/jobs/spotlight/change_visibility_job_spec.rb | 2 +- spec/jobs/spotlight/default_thumbnail_job_spec.rb | 2 +- spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb | 2 +- spec/jobs/spotlight/reindex_exhibit_job_spec.rb | 2 +- spec/jobs/spotlight/reindex_job_spec.rb | 2 +- spec/jobs/spotlight/remove_tags_job_spec.rb | 2 +- spec/jobs/spotlight/rename_sidecar_field_job_spec.rb | 2 +- spec/mailers/spotlight/indexing_complete_mailer_spec.rb | 2 +- spec/models/sir_trevor_rails/blocks/browse_block_spec.rb | 2 +- .../blocks/browse_group_categories_block_spec.rb | 2 +- .../models/sir_trevor_rails/blocks/featured_pages_block_spec.rb | 2 +- .../models/sir_trevor_rails/blocks/search_results_block_spec.rb | 2 +- .../models/sir_trevor_rails/blocks/solr_documents_block_spec.rb | 2 +- spec/models/sir_trevor_rails/blocks/textable_spec.rb | 2 +- spec/models/solr_document_spec.rb | 2 +- spec/models/spotlight/ability_spec.rb | 2 +- spec/models/spotlight/about_page_spec.rb | 2 +- .../access_controls_enforcement_search_builder_spec.rb | 2 +- spec/models/spotlight/analytics/ga_spec.rb | 2 +- spec/models/spotlight/background_job_progress_spec.rb | 2 +- spec/models/spotlight/blacklight_configuration_spec.rb | 2 +- spec/models/spotlight/browse_category_search_builder_spec.rb | 2 +- spec/models/spotlight/contact_email_spec.rb | 2 +- spec/models/spotlight/contact_form_spec.rb | 2 +- spec/models/spotlight/contact_image_spec.rb | 2 +- spec/models/spotlight/contact_spec.rb | 2 +- spec/models/spotlight/custom_field_spec.rb | 2 +- spec/models/spotlight/custom_search_field_spec.rb | 2 +- spec/models/spotlight/custom_translation_extension_spec.rb | 2 +- spec/models/spotlight/exhibit_spec.rb | 2 +- spec/models/spotlight/exhibit_thumbnail_spec.rb | 2 +- spec/models/spotlight/feature_page_spec.rb | 2 +- spec/models/spotlight/featured_image_spec.rb | 2 +- spec/models/spotlight/field_metadata_spec.rb | 2 +- spec/models/spotlight/filter_spec.rb | 2 +- spec/models/spotlight/group_spec.rb | 2 +- spec/models/spotlight/home_page_spec.rb | 2 +- spec/models/spotlight/main_navigation_spec.rb | 2 +- spec/models/spotlight/masthead_spec.rb | 2 +- spec/models/spotlight/page_configurations_spec.rb | 2 +- spec/models/spotlight/page_spec.rb | 2 +- spec/models/spotlight/resource_spec.rb | 2 +- spec/models/spotlight/resources/iiif_harvester_spec.rb | 2 +- spec/models/spotlight/resources/iiif_manifest_spec.rb | 2 +- spec/models/spotlight/resources/iiif_service_spec.rb | 2 +- spec/models/spotlight/resources/upload_spec.rb | 2 +- spec/models/spotlight/resources/web_spec.rb | 2 +- spec/models/spotlight/role_spec.rb | 2 +- spec/models/spotlight/search_spec.rb | 2 +- spec/models/spotlight/site_spec.rb | 2 +- spec/models/spotlight/sitemap_spec.rb | 2 +- spec/models/spotlight/solr_document/atomic_updates_spec.rb | 2 +- spec/models/spotlight/solr_document/uploaded_resource_spec.rb | 2 +- spec/models/spotlight/solr_document_sidecar_spec.rb | 2 +- spec/models/spotlight/user_spec.rb | 2 +- spec/models/translation_spec.rb | 2 +- spec/presenters/spotlight/iiif_manifest_presenter_spec.rb | 2 +- spec/routing/spotlight/featured_images_spec.rb | 2 +- spec/routing/spotlight/pages_routing_spec.rb | 2 +- spec/services/spotlight/etl/context_spec.rb | 2 +- spec/services/spotlight/etl/executor_spec.rb | 2 +- spec/services/spotlight/etl/pipeline_spec.rb | 2 +- spec/services/spotlight/etl/solr_loader_spec.rb | 2 +- spec/services/spotlight/etl/step_spec.rb | 2 +- spec/services/spotlight/exhibit_import_export_service_spec.rb | 2 +- spec/services/spotlight/iiif_resource_resolver_spec.rb | 2 +- spec/services/spotlight/invite_users_service_spec.rb | 2 +- spec/spec_helper.rb | 2 ++ spec/uploaders/spotlight/attachment_uploader_spec.rb | 2 +- spec/uploaders/spotlight/featured_image_uploader_spec.rb | 2 +- spec/views/shared/_analytics.html.erb_spec.rb | 2 +- spec/views/shared/_masthead.html.erb_spec.rb | 2 +- spec/views/shared/_user_util_links.html.erb_spec.rb | 2 +- spec/views/spotlight/about_pages/_empty.html.erb_spec.rb | 2 +- spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb | 2 +- spec/views/spotlight/about_pages/index.html.erb_spec.rb | 2 +- spec/views/spotlight/browse/_search.html.erb_spec.rb | 2 +- spec/views/spotlight/browse/index.html.erb_spec.rb | 2 +- spec/views/spotlight/browse/show.html.erb_spec.rb | 2 +- spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb | 2 +- spec/views/spotlight/catalog/admin.html.erb_spec.rb | 2 +- spec/views/spotlight/catalog/edit.html.erb_spec.rb | 2 +- spec/views/spotlight/contacts/edit.html.erb_spec.rb | 2 +- .../spotlight/dashboards/_reindexing_activity.html.erb_spec.rb | 2 +- spec/views/spotlight/dashboards/analytics.html.erb_spec.rb | 2 +- spec/views/spotlight/exhibits/_exhibit_card.html.erb_spec.rb | 2 +- spec/views/spotlight/exhibits/_form.html.erb_spec.rb | 2 +- spec/views/spotlight/exhibits/edit.html.erb_spec.rb | 2 +- spec/views/spotlight/exhibits/index.html.erb_spec.rb | 2 +- spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb | 2 +- spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb | 2 +- spec/views/spotlight/featured_images/_form.html.erb_spec.rb | 2 +- .../spotlight/featured_images/_upload_form.html.erb_spec.rb | 2 +- spec/views/spotlight/home_pages/_empty.html.erb_spec.rb | 2 +- spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb | 2 +- spec/views/spotlight/job_trackers/show.html.erb_spec.rb | 2 +- .../metadata_configurations/_metadata_field.html.erb_spec.rb | 2 +- .../spotlight/metadata_configurations/edit.html.erb_spec.rb | 2 +- spec/views/spotlight/pages/_form.html.erb_spec.rb | 2 +- spec/views/spotlight/pages/edit.html.erb_spec.rb | 2 +- spec/views/spotlight/pages/index.html.erb_spec.rb | 2 +- spec/views/spotlight/pages/new.html.erb_spec.rb | 2 +- spec/views/spotlight/pages/show.html.erb_spec.rb | 2 +- .../resources/_external_resources_form.html.erb_spec.rb | 2 +- spec/views/spotlight/resources/new.html.erb_spec.rb | 2 +- spec/views/spotlight/roles/index.html.erb_spec.rb | 2 +- .../search_configurations/_facet_metadata.html.erb_spec.rb | 2 +- .../spotlight/search_configurations/_facets.html.erb_spec.rb | 2 +- .../search_configurations/_search_fields.html.erb_spec.rb | 2 +- .../spotlight/search_configurations/_sort.html.erb_spec.rb | 2 +- spec/views/spotlight/searches/_search.html.erb_spec.rb | 2 +- spec/views/spotlight/searches/edit.html.erb_spec.rb | 2 +- spec/views/spotlight/searches/index.html.erb_spec.rb | 2 +- spec/views/spotlight/shared/_exhibit_sidebar.html.erb_spec.rb | 2 +- .../spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb | 2 +- .../spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb | 2 +- .../sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb | 2 +- .../spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb | 2 +- .../sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb | 2 +- .../blocks/_solr_documents_carousel_block.html.erb_spec.rb | 2 +- .../blocks/_solr_documents_embed_block.html.erb_spec.rb | 2 +- .../blocks/_solr_documents_features_block.html.erb_spec.rb | 2 +- .../blocks/_solr_documents_grid_block.html.erb_spec.rb | 2 +- .../sir_trevor/blocks/_uploaded_items_block.html.erb_spec.rb | 2 +- spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb | 2 +- spec/views/spotlight/tags/index.html.erb_spec.rb | 2 +- spec/views/spotlight/translations/_import.html.erb_spec.rb | 2 +- spec/views/spotlight/translations/_page.html.erb_spec.rb | 2 +- 226 files changed, 227 insertions(+), 225 deletions(-) diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index 34fcf4af7..ff3b7c31b 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe ApplicationController, type: :controller do +RSpec.describe ApplicationController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/about_pages_controller_spec.rb b/spec/controllers/spotlight/about_pages_controller_spec.rb index b467994f0..66d822fb5 100644 --- a/spec/controllers/spotlight/about_pages_controller_spec.rb +++ b/spec/controllers/spotlight/about_pages_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::AboutPagesController, type: :controller, versioning: true do +RSpec.describe Spotlight::AboutPagesController, type: :controller, versioning: true do routes { Spotlight::Engine.routes } let(:valid_attributes) { { 'title' => 'MyString', thumbnail: { iiif_url: '' } } } diff --git a/spec/controllers/spotlight/appearances_controller_spec.rb b/spec/controllers/spotlight/appearances_controller_spec.rb index 407a8a80e..898bad02f 100644 --- a/spec/controllers/spotlight/appearances_controller_spec.rb +++ b/spec/controllers/spotlight/appearances_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::AppearancesController, type: :controller do +RSpec.describe Spotlight::AppearancesController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/application_controller_spec.rb b/spec/controllers/spotlight/application_controller_spec.rb index f13b35041..9f721f02d 100644 --- a/spec/controllers/spotlight/application_controller_spec.rb +++ b/spec/controllers/spotlight/application_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ApplicationController, type: :controller do +RSpec.describe Spotlight::ApplicationController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/attachments_controller_spec.rb b/spec/controllers/spotlight/attachments_controller_spec.rb index 68c77d37c..c846f08f2 100644 --- a/spec/controllers/spotlight/attachments_controller_spec.rb +++ b/spec/controllers/spotlight/attachments_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::AttachmentsController, type: :controller do +RSpec.describe Spotlight::AttachmentsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/browse_controller_spec.rb b/spec/controllers/spotlight/browse_controller_spec.rb index dd81d7469..d47db5d60 100644 --- a/spec/controllers/spotlight/browse_controller_spec.rb +++ b/spec/controllers/spotlight/browse_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::BrowseController, type: :controller do +RSpec.describe Spotlight::BrowseController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } let!(:search) { FactoryBot.create(:published_search, exhibit:) } diff --git a/spec/controllers/spotlight/bulk_actions_controller_spec.rb b/spec/controllers/spotlight/bulk_actions_controller_spec.rb index 710848321..e4c7e0b24 100644 --- a/spec/controllers/spotlight/bulk_actions_controller_spec.rb +++ b/spec/controllers/spotlight/bulk_actions_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::BulkActionsController, type: :controller do +RSpec.describe Spotlight::BulkActionsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:skinny_exhibit) } diff --git a/spec/controllers/spotlight/bulk_updates_controller_spec.rb b/spec/controllers/spotlight/bulk_updates_controller_spec.rb index 4f60cc31f..70cd11bc3 100644 --- a/spec/controllers/spotlight/bulk_updates_controller_spec.rb +++ b/spec/controllers/spotlight/bulk_updates_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::BulkUpdatesController, type: :controller do +RSpec.describe Spotlight::BulkUpdatesController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/confirmations_controller_spec.rb b/spec/controllers/spotlight/confirmations_controller_spec.rb index 1e0ea0ee0..506d81deb 100644 --- a/spec/controllers/spotlight/confirmations_controller_spec.rb +++ b/spec/controllers/spotlight/confirmations_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ConfirmationsController, type: :controller do +RSpec.describe Spotlight::ConfirmationsController, type: :controller do routes { Spotlight::Engine.routes } before do # rubocop:disable RSpec/InstanceVariable diff --git a/spec/controllers/spotlight/contact_email_controller_spec.rb b/spec/controllers/spotlight/contact_email_controller_spec.rb index 9befc6a8a..408284622 100644 --- a/spec/controllers/spotlight/contact_email_controller_spec.rb +++ b/spec/controllers/spotlight/contact_email_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ContactEmailController, type: :controller do +RSpec.describe Spotlight::ContactEmailController, type: :controller do routes { Spotlight::Engine.routes } let(:contact_email) { FactoryBot.create(:contact_email) } diff --git a/spec/controllers/spotlight/contact_forms_controller_spec.rb b/spec/controllers/spotlight/contact_forms_controller_spec.rb index aeeeadcf5..59451670d 100644 --- a/spec/controllers/spotlight/contact_forms_controller_spec.rb +++ b/spec/controllers/spotlight/contact_forms_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ContactFormsController, type: :controller do +RSpec.describe Spotlight::ContactFormsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } let(:honeypot_field_name) { Spotlight::Engine.config.spambot_honeypot_email_field } diff --git a/spec/controllers/spotlight/contacts_controller_spec.rb b/spec/controllers/spotlight/contacts_controller_spec.rb index cbb26b293..9720f7d41 100644 --- a/spec/controllers/spotlight/contacts_controller_spec.rb +++ b/spec/controllers/spotlight/contacts_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ContactsController, type: :controller do +RSpec.describe Spotlight::ContactsController, type: :controller do routes { Spotlight::Engine.routes } describe 'when not logged in' do describe 'GET edit' do diff --git a/spec/controllers/spotlight/custom_fields_controller_spec.rb b/spec/controllers/spotlight/custom_fields_controller_spec.rb index 9162ff0a7..b89c0f719 100644 --- a/spec/controllers/spotlight/custom_fields_controller_spec.rb +++ b/spec/controllers/spotlight/custom_fields_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::CustomFieldsController, type: :controller do +RSpec.describe Spotlight::CustomFieldsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/custom_search_fields_controller_spec.rb b/spec/controllers/spotlight/custom_search_fields_controller_spec.rb index b4dae858b..97f3c7d06 100644 --- a/spec/controllers/spotlight/custom_search_fields_controller_spec.rb +++ b/spec/controllers/spotlight/custom_search_fields_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::CustomSearchFieldsController, type: :controller do +RSpec.describe Spotlight::CustomSearchFieldsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/dashboards_controller_spec.rb b/spec/controllers/spotlight/dashboards_controller_spec.rb index e2e9e01d5..c6cdbc996 100644 --- a/spec/controllers/spotlight/dashboards_controller_spec.rb +++ b/spec/controllers/spotlight/dashboards_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::DashboardsController, type: :controller do +RSpec.describe Spotlight::DashboardsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } let(:repository) { double } diff --git a/spec/controllers/spotlight/exhibits_controller_spec.rb b/spec/controllers/spotlight/exhibits_controller_spec.rb index 9267bc6bd..d193590c0 100644 --- a/spec/controllers/spotlight/exhibits_controller_spec.rb +++ b/spec/controllers/spotlight/exhibits_controller_spec.rb @@ -2,7 +2,7 @@ require 'rack/test' -describe Spotlight::ExhibitsController, type: :controller do +RSpec.describe Spotlight::ExhibitsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/feature_pages_controller_spec.rb b/spec/controllers/spotlight/feature_pages_controller_spec.rb index ca8aeb1ee..14c7c91ad 100644 --- a/spec/controllers/spotlight/feature_pages_controller_spec.rb +++ b/spec/controllers/spotlight/feature_pages_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::FeaturePagesController, type: :controller, versioning: true do +RSpec.describe Spotlight::FeaturePagesController, type: :controller, versioning: true do routes { Spotlight::Engine.routes } let(:valid_attributes) { { 'title' => 'MyString', thumbnail_attributes: { iiif_url: '' } } } diff --git a/spec/controllers/spotlight/featured_images_controller_spec.rb b/spec/controllers/spotlight/featured_images_controller_spec.rb index 70a971e61..d02258953 100644 --- a/spec/controllers/spotlight/featured_images_controller_spec.rb +++ b/spec/controllers/spotlight/featured_images_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::FeaturedImagesController, type: :controller do +RSpec.describe Spotlight::FeaturedImagesController, type: :controller do routes { Spotlight::Engine.routes } describe 'when the user is not authorized' do diff --git a/spec/controllers/spotlight/filters_controller_spec.rb b/spec/controllers/spotlight/filters_controller_spec.rb index f9cb9239f..fb6b44a61 100644 --- a/spec/controllers/spotlight/filters_controller_spec.rb +++ b/spec/controllers/spotlight/filters_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::FiltersController do +RSpec.describe Spotlight::FiltersController do routes { Spotlight::Engine.routes } describe '#create' do diff --git a/spec/controllers/spotlight/groups_controller_spec.rb b/spec/controllers/spotlight/groups_controller_spec.rb index a1de591c1..1238d3f65 100644 --- a/spec/controllers/spotlight/groups_controller_spec.rb +++ b/spec/controllers/spotlight/groups_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::GroupsController, type: :controller do +RSpec.describe Spotlight::GroupsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } let!(:group) { FactoryBot.create(:group, exhibit:) } diff --git a/spec/controllers/spotlight/home_pages_controller_spec.rb b/spec/controllers/spotlight/home_pages_controller_spec.rb index 722e3a2bc..575bbef7b 100644 --- a/spec/controllers/spotlight/home_pages_controller_spec.rb +++ b/spec/controllers/spotlight/home_pages_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::HomePagesController, type: :controller, versioning: true do +RSpec.describe Spotlight::HomePagesController, type: :controller, versioning: true do routes { Spotlight::Engine.routes } let(:valid_attributes) { { 'title' => 'MyString', thumbnail: { iiif_url: '' } } } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/job_trackers_controller_spec.rb b/spec/controllers/spotlight/job_trackers_controller_spec.rb index 1f1cd83a5..f4e15d6ca 100644 --- a/spec/controllers/spotlight/job_trackers_controller_spec.rb +++ b/spec/controllers/spotlight/job_trackers_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::JobTrackersController, type: :controller do +RSpec.describe Spotlight::JobTrackersController, type: :controller do routes { Spotlight::Engine.routes } let(:job_tracker) { FactoryBot.create(:job_tracker, on: exhibit) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/languages_controller_spec.rb b/spec/controllers/spotlight/languages_controller_spec.rb index 2aa4dc7c8..eef6dca33 100644 --- a/spec/controllers/spotlight/languages_controller_spec.rb +++ b/spec/controllers/spotlight/languages_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::LanguagesController do +RSpec.describe Spotlight::LanguagesController do routes { Spotlight::Engine.routes } describe '#create' do diff --git a/spec/controllers/spotlight/metadata_configurations_controller_spec.rb b/spec/controllers/spotlight/metadata_configurations_controller_spec.rb index 0a3ead5cd..2860e960a 100644 --- a/spec/controllers/spotlight/metadata_configurations_controller_spec.rb +++ b/spec/controllers/spotlight/metadata_configurations_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::MetadataConfigurationsController, type: :controller do +RSpec.describe Spotlight::MetadataConfigurationsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/pages_controller_spec.rb b/spec/controllers/spotlight/pages_controller_spec.rb index 8d7d7cd37..097054bb4 100644 --- a/spec/controllers/spotlight/pages_controller_spec.rb +++ b/spec/controllers/spotlight/pages_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::PagesController, type: :controller do +RSpec.describe Spotlight::PagesController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } let(:feature_page) { FactoryBot.create(:feature_page, exhibit:, published: false) } diff --git a/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb b/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb index 59cff061e..d4ebc221e 100644 --- a/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb +++ b/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Resources::CsvUploadController, type: :controller do +RSpec.describe Spotlight::Resources::CsvUploadController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/resources/upload_controller_spec.rb b/spec/controllers/spotlight/resources/upload_controller_spec.rb index 220e94c45..fdb22f3ab 100644 --- a/spec/controllers/spotlight/resources/upload_controller_spec.rb +++ b/spec/controllers/spotlight/resources/upload_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Resources::UploadController, type: :controller do +RSpec.describe Spotlight::Resources::UploadController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/resources_controller_spec.rb b/spec/controllers/spotlight/resources_controller_spec.rb index 1dfb66d70..8c0b35b63 100644 --- a/spec/controllers/spotlight/resources_controller_spec.rb +++ b/spec/controllers/spotlight/resources_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ResourcesController, type: :controller do +RSpec.describe Spotlight::ResourcesController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/roles_controller_spec.rb b/spec/controllers/spotlight/roles_controller_spec.rb index d47ebfee2..1fd6f0e7a 100644 --- a/spec/controllers/spotlight/roles_controller_spec.rb +++ b/spec/controllers/spotlight/roles_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::RolesController, type: :controller do +RSpec.describe Spotlight::RolesController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/search_configurations_controller_spec.rb b/spec/controllers/spotlight/search_configurations_controller_spec.rb index 184dafdeb..9a6f6ad90 100644 --- a/spec/controllers/spotlight/search_configurations_controller_spec.rb +++ b/spec/controllers/spotlight/search_configurations_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::SearchConfigurationsController, type: :controller do +RSpec.describe Spotlight::SearchConfigurationsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/searches_controller_spec.rb b/spec/controllers/spotlight/searches_controller_spec.rb index 4460ad9cf..c9368a9ab 100644 --- a/spec/controllers/spotlight/searches_controller_spec.rb +++ b/spec/controllers/spotlight/searches_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::SearchesController, type: :controller do +RSpec.describe Spotlight::SearchesController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/sites_controller_spec.rb b/spec/controllers/spotlight/sites_controller_spec.rb index e9ca83772..cfd6dbde9 100644 --- a/spec/controllers/spotlight/sites_controller_spec.rb +++ b/spec/controllers/spotlight/sites_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::SitesController, type: :controller do +RSpec.describe Spotlight::SitesController, type: :controller do routes { Spotlight::Engine.routes } describe 'when user does not have access' do diff --git a/spec/controllers/spotlight/solr_controller_spec.rb b/spec/controllers/spotlight/solr_controller_spec.rb index 2bdc81577..c18b9d07c 100644 --- a/spec/controllers/spotlight/solr_controller_spec.rb +++ b/spec/controllers/spotlight/solr_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::SolrController, type: :controller do +RSpec.describe Spotlight::SolrController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/tags_controller_spec.rb b/spec/controllers/spotlight/tags_controller_spec.rb index 9a0cbf424..702352a47 100644 --- a/spec/controllers/spotlight/tags_controller_spec.rb +++ b/spec/controllers/spotlight/tags_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::TagsController, type: :controller do +RSpec.describe Spotlight::TagsController, type: :controller do include ActiveJob::TestHelper routes { Spotlight::Engine.routes } diff --git a/spec/controllers/spotlight/translations_controller_spec.rb b/spec/controllers/spotlight/translations_controller_spec.rb index b7ac111f2..fb60e9e07 100644 --- a/spec/controllers/spotlight/translations_controller_spec.rb +++ b/spec/controllers/spotlight/translations_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::TranslationsController do +RSpec.describe Spotlight::TranslationsController do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/controllers/spotlight/versions_controller_spec.rb b/spec/controllers/spotlight/versions_controller_spec.rb index 7a5145205..5f5549fcd 100644 --- a/spec/controllers/spotlight/versions_controller_spec.rb +++ b/spec/controllers/spotlight/versions_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::VersionsController, type: :controller, versioning: true do +RSpec.describe Spotlight::VersionsController, type: :controller, versioning: true do routes { Spotlight::Engine.routes } describe 'when not logged in' do diff --git a/spec/controllers/spotlight/view_configurations_controller_spec.rb b/spec/controllers/spotlight/view_configurations_controller_spec.rb index 3e06e0315..0ec5d40c8 100644 --- a/spec/controllers/spotlight/view_configurations_controller_spec.rb +++ b/spec/controllers/spotlight/view_configurations_controller_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ViewConfigurationsController, type: :controller do +RSpec.describe Spotlight::ViewConfigurationsController, type: :controller do routes { Spotlight::Engine.routes } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/features/about_page_spec.rb b/spec/features/about_page_spec.rb index 280bfee68..38f8c65f0 100644 --- a/spec/features/about_page_spec.rb +++ b/spec/features/about_page_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'About page', type: :feature, versioning: true do +RSpec.describe 'About page', type: :feature, versioning: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let!(:about_page1) { FactoryBot.create(:about_page, title: 'First Page', exhibit:) } diff --git a/spec/features/add_contacts_spec.rb b/spec/features/add_contacts_spec.rb index 824fce64d..889a5592e 100644 --- a/spec/features/add_contacts_spec.rb +++ b/spec/features/add_contacts_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Add a contact to an exhibit', type: :feature do +RSpec.describe 'Add a contact to an exhibit', type: :feature do let(:curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let(:exhibit) { FactoryBot.create(:exhibit) } let!(:about_page) { FactoryBot.create(:about_page, exhibit:) } diff --git a/spec/features/add_custom_field_metadata_spec.rb b/spec/features/add_custom_field_metadata_spec.rb index d8f860754..5cb1ecda7 100644 --- a/spec/features/add_custom_field_metadata_spec.rb +++ b/spec/features/add_custom_field_metadata_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Adding custom metadata field data', type: :feature do +RSpec.describe 'Adding custom metadata field data', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } let(:custom_field) { FactoryBot.create(:custom_field, exhibit:) } diff --git a/spec/features/add_iiif_manifest_spec.rb b/spec/features/add_iiif_manifest_spec.rb index 273377998..6b2e6937d 100644 --- a/spec/features/add_iiif_manifest_spec.rb +++ b/spec/features/add_iiif_manifest_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe 'adding IIIF Manifest', type: :feature do +RSpec.describe 'adding IIIF Manifest', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/add_items_spec.rb b/spec/features/add_items_spec.rb index c5c2a0e58..7d58c4d37 100644 --- a/spec/features/add_items_spec.rb +++ b/spec/features/add_items_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Uploading a non-repository item', type: :feature do +RSpec.describe 'Uploading a non-repository item', type: :feature do include ActiveJob::TestHelper let!(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/features/alt_text_dashboard_spec.rb b/spec/features/alt_text_dashboard_spec.rb index a60733b25..79154f31b 100644 --- a/spec/features/alt_text_dashboard_spec.rb +++ b/spec/features/alt_text_dashboard_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Alt text dashboard', type: :feature do +RSpec.describe 'Alt text dashboard', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/browse_category_spec.rb b/spec/features/browse_category_spec.rb index b71491a2d..30f20b7ba 100644 --- a/spec/features/browse_category_spec.rb +++ b/spec/features/browse_category_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Browse pages' do +RSpec.describe 'Browse pages' do let(:exhibit) { FactoryBot.create(:exhibit) } context 'a browse page' do diff --git a/spec/features/confirm_email_spec.rb b/spec/features/confirm_email_spec.rb index bd7877ff9..8f17ce9ac 100644 --- a/spec/features/confirm_email_spec.rb +++ b/spec/features/confirm_email_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Confirming an email', type: :feature do +RSpec.describe 'Confirming an email', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:contact_email) { Spotlight::ContactEmail.create!(email: 'justin@example.com', exhibit:) } let(:raw_token) { contact_email.instance_variable_get(:@raw_confirmation_token) } diff --git a/spec/features/create_exhibit_spec.rb b/spec/features/create_exhibit_spec.rb index bb0e57a20..c99f973c5 100644 --- a/spec/features/create_exhibit_spec.rb +++ b/spec/features/create_exhibit_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Create a new exhibit', type: :feature do +RSpec.describe 'Create a new exhibit', type: :feature do let(:user) { FactoryBot.create(:site_admin) } before do diff --git a/spec/features/create_page_spec.rb b/spec/features/create_page_spec.rb index 50474c9f2..c71984fd5 100644 --- a/spec/features/create_page_spec.rb +++ b/spec/features/create_page_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Creating a page', type: :feature do +RSpec.describe 'Creating a page', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/dashboard_spec.rb b/spec/features/dashboard_spec.rb index 3f2aa356f..60cc78a77 100644 --- a/spec/features/dashboard_spec.rb +++ b/spec/features/dashboard_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Dashboard', type: :feature do +RSpec.describe 'Dashboard', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let!(:parent_feature_page) do FactoryBot.create(:feature_page, title: 'Parent Page', exhibit:) diff --git a/spec/features/edit_contact_spec.rb b/spec/features/edit_contact_spec.rb index 947996426..2bce156d6 100644 --- a/spec/features/edit_contact_spec.rb +++ b/spec/features/edit_contact_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Add a contact to an exhibit', type: :feature do +RSpec.describe 'Add a contact to an exhibit', type: :feature do let(:curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let(:exhibit) { FactoryBot.create(:exhibit) } let!(:about_page) { FactoryBot.create(:about_page, exhibit:) } diff --git a/spec/features/edit_search_fields_spec.rb b/spec/features/edit_search_fields_spec.rb index 2d0872280..1df1ca8db 100644 --- a/spec/features/edit_search_fields_spec.rb +++ b/spec/features/edit_search_fields_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Search Administration', type: :feature do +RSpec.describe 'Search Administration', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/exhibit_masthead_spec.rb b/spec/features/exhibit_masthead_spec.rb index 4dbb185f3..b3c87daa8 100644 --- a/spec/features/exhibit_masthead_spec.rb +++ b/spec/features/exhibit_masthead_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Add and update the site masthead', type: :feature do +RSpec.describe 'Add and update the site masthead', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:user) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/exhibit_themes_spec.rb b/spec/features/exhibit_themes_spec.rb index c9e2cfb9e..f46cb95ce 100644 --- a/spec/features/exhibit_themes_spec.rb +++ b/spec/features/exhibit_themes_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Update the site theme', type: :feature do +RSpec.describe 'Update the site theme', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:user) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/exhibits/add_tags_spec.rb b/spec/features/exhibits/add_tags_spec.rb index 014403f6e..9b1917b43 100644 --- a/spec/features/exhibits/add_tags_spec.rb +++ b/spec/features/exhibits/add_tags_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Add tags to an item in an exhibit', type: :feature do +RSpec.describe 'Add tags to an item in an exhibit', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let(:custom_field) { FactoryBot.build_stubbed(:custom_field, exhibit:) } diff --git a/spec/features/exhibits/custom_metadata_fields_spec.rb b/spec/features/exhibits/custom_metadata_fields_spec.rb index eab518e81..8da535db5 100644 --- a/spec/features/exhibits/custom_metadata_fields_spec.rb +++ b/spec/features/exhibits/custom_metadata_fields_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Adding custom metadata fields', type: :feature do +RSpec.describe 'Adding custom metadata fields', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/exhibits/custom_search_fields_spec.rb b/spec/features/exhibits/custom_search_fields_spec.rb index 108bb2219..fb02cdd08 100644 --- a/spec/features/exhibits/custom_search_fields_spec.rb +++ b/spec/features/exhibits/custom_search_fields_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Adding custom search fields', type: :feature do +RSpec.describe 'Adding custom search fields', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/exhibits/edit_metadata_fields_spec.rb b/spec/features/exhibits/edit_metadata_fields_spec.rb index 8e4c1eac8..57e1a5a26 100644 --- a/spec/features/exhibits/edit_metadata_fields_spec.rb +++ b/spec/features/exhibits/edit_metadata_fields_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Editing metadata fields', type: :feature do +RSpec.describe 'Editing metadata fields', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/exhibits/language_create_edit_spec.rb b/spec/features/exhibits/language_create_edit_spec.rb index 8a2c179b7..c58a5aff8 100644 --- a/spec/features/exhibits/language_create_edit_spec.rb +++ b/spec/features/exhibits/language_create_edit_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Language', type: :feature do +RSpec.describe 'Language', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/exhibits/translation_editing_spec.rb b/spec/features/exhibits/translation_editing_spec.rb index 33876e4f2..b4d46fa87 100644 --- a/spec/features/exhibits/translation_editing_spec.rb +++ b/spec/features/exhibits/translation_editing_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Translation editing', type: :feature do +RSpec.describe 'Translation editing', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit, title: 'Sample', subtitle: 'SubSample') } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/exhibits_index_spec.rb b/spec/features/exhibits_index_spec.rb index 1372c1ff2..9b67a1808 100644 --- a/spec/features/exhibits_index_spec.rb +++ b/spec/features/exhibits_index_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Exhibits index page', type: :feature do +RSpec.describe 'Exhibits index page', type: :feature do context 'with multiple exhibits' do let!(:exhibit) { FactoryBot.create(:exhibit, title: 'Some Exhibit Title') } let!(:other_exhibit) { FactoryBot.create(:exhibit, title: 'Some Other Title') } diff --git a/spec/features/home_page_spec.rb b/spec/features/home_page_spec.rb index a990f42fd..eeb2104fa 100644 --- a/spec/features/home_page_spec.rb +++ b/spec/features/home_page_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Home page', type: :feature, versioning: true do +RSpec.describe 'Home page', type: :feature, versioning: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/import_exhibit_spec.rb b/spec/features/import_exhibit_spec.rb index d8ec81b02..30a8d3625 100644 --- a/spec/features/import_exhibit_spec.rb +++ b/spec/features/import_exhibit_spec.rb @@ -2,7 +2,7 @@ require 'tempfile' -describe 'Allow exhibit admins to import and export content from an exhibit', js: true, type: :feature do +RSpec.describe 'Allow exhibit admins to import and export content from an exhibit', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:user) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/item_admin_spec.rb b/spec/features/item_admin_spec.rb index 05fbd2f7a..01acce9cb 100644 --- a/spec/features/item_admin_spec.rb +++ b/spec/features/item_admin_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Item Administration', type: :feature do +RSpec.describe 'Item Administration', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/javascript/about_page_admin_spec.rb b/spec/features/javascript/about_page_admin_spec.rb index 8d2c6f5e1..9e755e395 100644 --- a/spec/features/javascript/about_page_admin_spec.rb +++ b/spec/features/javascript/about_page_admin_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'About Pages Adminstration', js: true do +RSpec.describe 'About Pages Adminstration', js: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/javascript/block_controls_spec.rb b/spec/features/javascript/block_controls_spec.rb index 32b66a2f7..1afa1ae9a 100644 --- a/spec/features/javascript/block_controls_spec.rb +++ b/spec/features/javascript/block_controls_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Block controls' do +RSpec.describe 'Block controls' do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/javascript/blocks/browse_group_categories_block_spec.rb b/spec/features/javascript/blocks/browse_group_categories_block_spec.rb index 74c7a7791..a528d25ad 100644 --- a/spec/features/javascript/blocks/browse_group_categories_block_spec.rb +++ b/spec/features/javascript/blocks/browse_group_categories_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Browse Group Categories', js: true, type: :feature do +RSpec.describe 'Browse Group Categories', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/javascript/blocks/featured_browse_categories_block_spec.rb b/spec/features/javascript/blocks/featured_browse_categories_block_spec.rb index d824fbc70..afe6a12c7 100644 --- a/spec/features/javascript/blocks/featured_browse_categories_block_spec.rb +++ b/spec/features/javascript/blocks/featured_browse_categories_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Featured Browse Category Block', js: true, type: :feature do +RSpec.describe 'Featured Browse Category Block', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/javascript/blocks/featured_pages_block_spec.rb b/spec/features/javascript/blocks/featured_pages_block_spec.rb index b9b5b43bd..2f2caa1bf 100644 --- a/spec/features/javascript/blocks/featured_pages_block_spec.rb +++ b/spec/features/javascript/blocks/featured_pages_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Featured Pages Blocks', js: true, type: :feature do +RSpec.describe 'Featured Pages Blocks', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let!(:feature_page1) do FactoryBot.create( diff --git a/spec/features/javascript/blocks/link_to_search_block_spec.rb b/spec/features/javascript/blocks/link_to_search_block_spec.rb index 2218ac35c..e5f937481 100644 --- a/spec/features/javascript/blocks/link_to_search_block_spec.rb +++ b/spec/features/javascript/blocks/link_to_search_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Link to Search Block', js: true, type: :feature do +RSpec.describe 'Link to Search Block', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/javascript/blocks/oembed_and_text_block_spec.rb b/spec/features/javascript/blocks/oembed_and_text_block_spec.rb index 817c382fa..73571cabc 100644 --- a/spec/features/javascript/blocks/oembed_and_text_block_spec.rb +++ b/spec/features/javascript/blocks/oembed_and_text_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Oembed and text block', feature: true, max_wait_time: 15, versioning: true do +RSpec.describe 'Oembed and text block', feature: true, max_wait_time: 15, versioning: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let(:feature_page) do diff --git a/spec/features/javascript/blocks/rule_block_spec.rb b/spec/features/javascript/blocks/rule_block_spec.rb index de742b6e0..0164da315 100644 --- a/spec/features/javascript/blocks/rule_block_spec.rb +++ b/spec/features/javascript/blocks/rule_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Horizontal rule block', js: true, type: :feature, versioning: true do +RSpec.describe 'Horizontal rule block', js: true, type: :feature, versioning: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let!(:feature_page) { FactoryBot.create(:feature_page, exhibit:) } diff --git a/spec/features/javascript/blocks/search_result_block_spec.rb b/spec/features/javascript/blocks/search_result_block_spec.rb index a69c21683..8fe24b8ae 100644 --- a/spec/features/javascript/blocks/search_result_block_spec.rb +++ b/spec/features/javascript/blocks/search_result_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Search Result Block', js: true, type: :feature do +RSpec.describe 'Search Result Block', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/javascript/blocks/solr_documents_carousel_block_spec.rb b/spec/features/javascript/blocks/solr_documents_carousel_block_spec.rb index a53282ce9..c72ea2a6a 100644 --- a/spec/features/javascript/blocks/solr_documents_carousel_block_spec.rb +++ b/spec/features/javascript/blocks/solr_documents_carousel_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Solr Documents Carousel Block', js: true, type: :feature do +RSpec.describe 'Solr Documents Carousel Block', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/features/javascript/blocks/uploaded_items_block_spec.rb b/spec/features/javascript/blocks/uploaded_items_block_spec.rb index 9b1a7d4db..b750f0b9b 100644 --- a/spec/features/javascript/blocks/uploaded_items_block_spec.rb +++ b/spec/features/javascript/blocks/uploaded_items_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Uploaded Items Block', feature: true, js: true, versioning: true do +RSpec.describe 'Uploaded Items Block', feature: true, js: true, versioning: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let(:fixture_file1) { File.join(FIXTURES_PATH, '800x600.png') } diff --git a/spec/features/javascript/browse_group_admin_spec.rb b/spec/features/javascript/browse_group_admin_spec.rb index 221f0627a..344e1ed29 100644 --- a/spec/features/javascript/browse_group_admin_spec.rb +++ b/spec/features/javascript/browse_group_admin_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Browse Group Adminstration', js: true do +RSpec.describe 'Browse Group Adminstration', js: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let!(:group1) do diff --git a/spec/features/javascript/edit_in_place_spec.rb b/spec/features/javascript/edit_in_place_spec.rb index 63e74da89..95bdf9ace 100644 --- a/spec/features/javascript/edit_in_place_spec.rb +++ b/spec/features/javascript/edit_in_place_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Edit in place', js: true, type: :feature do +RSpec.describe 'Edit in place', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/javascript/home_page_edit_spec.rb b/spec/features/javascript/home_page_edit_spec.rb index 27a8765d9..37b0c7377 100644 --- a/spec/features/javascript/home_page_edit_spec.rb +++ b/spec/features/javascript/home_page_edit_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Editing the Home Page', js: true, versioning: true do +RSpec.describe 'Editing the Home Page', js: true, versioning: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/javascript/metadata_admin_spec.rb b/spec/features/javascript/metadata_admin_spec.rb index 779e31ba8..9e23b1ded 100644 --- a/spec/features/javascript/metadata_admin_spec.rb +++ b/spec/features/javascript/metadata_admin_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Metadata Administration', js: true do +RSpec.describe 'Metadata Administration', js: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/javascript/reindex_monitor_spec.rb b/spec/features/javascript/reindex_monitor_spec.rb index 44017ac7d..3982e53e6 100644 --- a/spec/features/javascript/reindex_monitor_spec.rb +++ b/spec/features/javascript/reindex_monitor_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Reindex Monitor', js: true, max_wait_time: 10 do +RSpec.describe 'Reindex Monitor', js: true, max_wait_time: 10 do let(:resources) do FactoryBot.create_list(:resource, 1) end diff --git a/spec/features/javascript/roles_admin_spec.rb b/spec/features/javascript/roles_admin_spec.rb index de3856978..7ba264c16 100644 --- a/spec/features/javascript/roles_admin_spec.rb +++ b/spec/features/javascript/roles_admin_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Roles Admin', js: true, type: :feature do +RSpec.describe 'Roles Admin', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_admin) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/javascript/search_context_spec.rb b/spec/features/javascript/search_context_spec.rb index 566eb4f19..78e982d34 100644 --- a/spec/features/javascript/search_context_spec.rb +++ b/spec/features/javascript/search_context_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Search contexts' do +RSpec.describe 'Search contexts' do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } let(:feature_page) do diff --git a/spec/features/main_navigation_spec.rb b/spec/features/main_navigation_spec.rb index 63e0c1822..531313dcd 100644 --- a/spec/features/main_navigation_spec.rb +++ b/spec/features/main_navigation_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Main navigation labels are settable', type: :feature do +RSpec.describe 'Main navigation labels are settable', type: :feature do let!(:exhibit) { FactoryBot.create(:exhibit) } let!(:about) { FactoryBot.create(:about_page, exhibit:, published: true) } diff --git a/spec/features/metadata_admin_spec.rb b/spec/features/metadata_admin_spec.rb index add069986..14102491d 100644 --- a/spec/features/metadata_admin_spec.rb +++ b/spec/features/metadata_admin_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Metadata Administration', type: :feature do +RSpec.describe 'Metadata Administration', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:user) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/site_masthead_spec.rb b/spec/features/site_masthead_spec.rb index e43d6e02c..8fdac7221 100644 --- a/spec/features/site_masthead_spec.rb +++ b/spec/features/site_masthead_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Add and update the site masthead', type: :feature do +RSpec.describe 'Add and update the site masthead', type: :feature do let(:user) { FactoryBot.create(:site_admin) } before { login_as user } diff --git a/spec/features/slideshow_spec.rb b/spec/features/slideshow_spec.rb index d188dc7ec..bbdbb3ef3 100644 --- a/spec/features/slideshow_spec.rb +++ b/spec/features/slideshow_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Slideshow', js: true, type: :feature do +RSpec.describe 'Slideshow', js: true, type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:user) { FactoryBot.create(:exhibit_admin, exhibit:) } diff --git a/spec/features/translation_scope_spec.rb b/spec/features/translation_scope_spec.rb index 38459bbee..d39e75383 100644 --- a/spec/features/translation_scope_spec.rb +++ b/spec/features/translation_scope_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Translations scope setting', type: :feature do +RSpec.describe 'Translations scope setting', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:other_exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit:) } diff --git a/spec/helpers/spotlight/application_helper_spec.rb b/spec/helpers/spotlight/application_helper_spec.rb index 26c8d1260..fa79668ee 100644 --- a/spec/helpers/spotlight/application_helper_spec.rb +++ b/spec/helpers/spotlight/application_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ApplicationHelper, type: :helper do +RSpec.describe Spotlight::ApplicationHelper, type: :helper do describe '#application_name' do let(:site) { Spotlight::Site.instance } diff --git a/spec/helpers/spotlight/browse_helper_spec.rb b/spec/helpers/spotlight/browse_helper_spec.rb index 4edccac81..34a8a2efb 100644 --- a/spec/helpers/spotlight/browse_helper_spec.rb +++ b/spec/helpers/spotlight/browse_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::BrowseHelper, type: :helper do +RSpec.describe Spotlight::BrowseHelper, type: :helper do it 'defaults to the gallery' do allow(helper).to receive_messages(blacklight_config: double(view: { gallery: true })) expect(helper.default_document_index_view_type).to eq :gallery diff --git a/spec/helpers/spotlight/crop_helper_spec.rb b/spec/helpers/spotlight/crop_helper_spec.rb index 04667d9ce..af19ab169 100644 --- a/spec/helpers/spotlight/crop_helper_spec.rb +++ b/spec/helpers/spotlight/crop_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::CropHelper do +RSpec.describe Spotlight::CropHelper do describe '#form_prefix' do let(:form) { double(object_name: 'Spotlight::Exhibit') } diff --git a/spec/helpers/spotlight/crud_link_helpers_spec.rb b/spec/helpers/spotlight/crud_link_helpers_spec.rb index 02ebff5b3..d2f46ccd2 100644 --- a/spec/helpers/spotlight/crud_link_helpers_spec.rb +++ b/spec/helpers/spotlight/crud_link_helpers_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::CrudLinkHelpers, type: :helper do +RSpec.describe Spotlight::CrudLinkHelpers, type: :helper do let(:exhibit) { FactoryBot.create(:exhibit) } let(:some_model) { Spotlight::FeaturePage.create! exhibit: } diff --git a/spec/helpers/spotlight/main_app_helpers_spec.rb b/spec/helpers/spotlight/main_app_helpers_spec.rb index 5f33d3a76..b90b9bde6 100644 --- a/spec/helpers/spotlight/main_app_helpers_spec.rb +++ b/spec/helpers/spotlight/main_app_helpers_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::MainAppHelpers, type: :helper do +RSpec.describe Spotlight::MainAppHelpers, type: :helper do describe '#show_contact_form?' do subject { helper } diff --git a/spec/helpers/spotlight/masthead_helper_spec.rb b/spec/helpers/spotlight/masthead_helper_spec.rb index e3883a83a..f86be8d15 100644 --- a/spec/helpers/spotlight/masthead_helper_spec.rb +++ b/spec/helpers/spotlight/masthead_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::MastheadHelper, type: :helper do +RSpec.describe Spotlight::MastheadHelper, type: :helper do let(:exhibit) { FactoryBot.create(:exhibit) } let(:site) { Spotlight::Site.instance } diff --git a/spec/helpers/spotlight/meta_helper_spec.rb b/spec/helpers/spotlight/meta_helper_spec.rb index 8ab289cdf..a1ce93a38 100644 --- a/spec/helpers/spotlight/meta_helper_spec.rb +++ b/spec/helpers/spotlight/meta_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::MetaHelper, type: :helper do +RSpec.describe Spotlight::MetaHelper, type: :helper do describe '#add_exhibit_meta_content' do let(:current_exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/helpers/spotlight/pages_helper_spec.rb b/spec/helpers/spotlight/pages_helper_spec.rb index e59d2d0f2..4ee163e1b 100644 --- a/spec/helpers/spotlight/pages_helper_spec.rb +++ b/spec/helpers/spotlight/pages_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::PagesHelper, type: :helper do +RSpec.describe Spotlight::PagesHelper, type: :helper do let(:blacklight_config) { Blacklight::Configuration.new { |config| config.show.title_field = :abc } } let(:titled_document) { blacklight_config.document_model.new(abc: 'value') } let(:untitled_document) { blacklight_config.document_model.new(id: '1234') } diff --git a/spec/helpers/spotlight/roles_helper_spec.rb b/spec/helpers/spotlight/roles_helper_spec.rb index 465260758..34cddf33b 100644 --- a/spec/helpers/spotlight/roles_helper_spec.rb +++ b/spec/helpers/spotlight/roles_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::RolesHelper, type: :helper do +RSpec.describe Spotlight::RolesHelper, type: :helper do it 'is a list of options' do expect(helper.roles_for_select).to eq('Admin' => 'admin', 'Curator' => 'curator', 'Viewer' => 'viewer') end diff --git a/spec/helpers/spotlight/search_configurations_helper_spec.rb b/spec/helpers/spotlight/search_configurations_helper_spec.rb index 8f6417d70..a47b802fd 100644 --- a/spec/helpers/spotlight/search_configurations_helper_spec.rb +++ b/spec/helpers/spotlight/search_configurations_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::SearchConfigurationsHelper, type: :helper do +RSpec.describe Spotlight::SearchConfigurationsHelper, type: :helper do describe '#translate_sort_fields' do let(:sort_config) do Blacklight::OpenStructWithHashAccess.new(sort: 'score asc, sort_title_ssi desc') diff --git a/spec/helpers/spotlight/title_helper_spec.rb b/spec/helpers/spotlight/title_helper_spec.rb index 4db962ca8..33b27e3b3 100644 --- a/spec/helpers/spotlight/title_helper_spec.rb +++ b/spec/helpers/spotlight/title_helper_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::TitleHelper, type: :helper do +RSpec.describe Spotlight::TitleHelper, type: :helper do before do allow(helper).to receive_messages(application_name: 'Application') end diff --git a/spec/jobs/spotlight/add_tags_job_spec.rb b/spec/jobs/spotlight/add_tags_job_spec.rb index 7dfb204e5..5734cb342 100644 --- a/spec/jobs/spotlight/add_tags_job_spec.rb +++ b/spec/jobs/spotlight/add_tags_job_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::AddTagsJob do +RSpec.describe Spotlight::AddTagsJob do subject { described_class.new(solr_params:, exhibit:, tags:) } let(:solr_params) { { q: 'map' } } diff --git a/spec/jobs/spotlight/add_uploads_from_csv_spec.rb b/spec/jobs/spotlight/add_uploads_from_csv_spec.rb index 8e17ea198..aa2881900 100644 --- a/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +++ b/spec/jobs/spotlight/add_uploads_from_csv_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::AddUploadsFromCsv do +RSpec.describe Spotlight::AddUploadsFromCsv do subject(:job) { described_class.new(data, exhibit, user) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/jobs/spotlight/change_visibility_job_spec.rb b/spec/jobs/spotlight/change_visibility_job_spec.rb index 3049e1e8f..bd4292b3d 100644 --- a/spec/jobs/spotlight/change_visibility_job_spec.rb +++ b/spec/jobs/spotlight/change_visibility_job_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ChangeVisibilityJob do +RSpec.describe Spotlight::ChangeVisibilityJob do subject { described_class.new(solr_params:, exhibit:, visibility:) } let(:solr_params) { { q: 'map' } } diff --git a/spec/jobs/spotlight/default_thumbnail_job_spec.rb b/spec/jobs/spotlight/default_thumbnail_job_spec.rb index 2341b6717..48eeda104 100644 --- a/spec/jobs/spotlight/default_thumbnail_job_spec.rb +++ b/spec/jobs/spotlight/default_thumbnail_job_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::DefaultThumbnailJob do +RSpec.describe Spotlight::DefaultThumbnailJob do subject { described_class.new(thumbnailable) } let(:thumbnailable) { double('Thumbnailable') } diff --git a/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb b/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb index ecf41c5bd..036574791 100644 --- a/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb +++ b/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb @@ -4,7 +4,7 @@ def tag_names(exhibit, id) exhibit.blacklight_config.repository.find(id).documents.first.sidecar(exhibit).taggings.includes(:tag).map { |tagging| tagging&.tag&.name } end -describe Spotlight::ProcessBulkUpdatesCsvJob do +RSpec.describe Spotlight::ProcessBulkUpdatesCsvJob do subject { described_class.new(exhibit, bulk_update) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/jobs/spotlight/reindex_exhibit_job_spec.rb b/spec/jobs/spotlight/reindex_exhibit_job_spec.rb index 6f1e8462a..723332dcc 100644 --- a/spec/jobs/spotlight/reindex_exhibit_job_spec.rb +++ b/spec/jobs/spotlight/reindex_exhibit_job_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ReindexExhibitJob do +RSpec.describe Spotlight::ReindexExhibitJob do let(:exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/jobs/spotlight/reindex_job_spec.rb b/spec/jobs/spotlight/reindex_job_spec.rb index 12579393d..7a22aad2d 100644 --- a/spec/jobs/spotlight/reindex_job_spec.rb +++ b/spec/jobs/spotlight/reindex_job_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ReindexJob do +RSpec.describe Spotlight::ReindexJob do include ActiveJob::TestHelper let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/jobs/spotlight/remove_tags_job_spec.rb b/spec/jobs/spotlight/remove_tags_job_spec.rb index 57318c877..95a093f90 100644 --- a/spec/jobs/spotlight/remove_tags_job_spec.rb +++ b/spec/jobs/spotlight/remove_tags_job_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::RemoveTagsJob do +RSpec.describe Spotlight::RemoveTagsJob do subject { described_class.new(solr_params:, exhibit:, tags:) } let(:solr_params) { { q: 'map' } } diff --git a/spec/jobs/spotlight/rename_sidecar_field_job_spec.rb b/spec/jobs/spotlight/rename_sidecar_field_job_spec.rb index 7eca3e996..462a3d082 100644 --- a/spec/jobs/spotlight/rename_sidecar_field_job_spec.rb +++ b/spec/jobs/spotlight/rename_sidecar_field_job_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::RenameSidecarFieldJob do +RSpec.describe Spotlight::RenameSidecarFieldJob do include ActiveJob::TestHelper let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/mailers/spotlight/indexing_complete_mailer_spec.rb b/spec/mailers/spotlight/indexing_complete_mailer_spec.rb index 34752b188..ee8184d05 100644 --- a/spec/mailers/spotlight/indexing_complete_mailer_spec.rb +++ b/spec/mailers/spotlight/indexing_complete_mailer_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::IndexingCompleteMailer do +RSpec.describe Spotlight::IndexingCompleteMailer do subject { described_class.documents_indexed [1, 2, 3], exhibit, user, indexed_count: 3 } let(:user) { double(email: 'test@example.com') } diff --git a/spec/models/sir_trevor_rails/blocks/browse_block_spec.rb b/spec/models/sir_trevor_rails/blocks/browse_block_spec.rb index 3e1a6b089..7c1c58923 100644 --- a/spec/models/sir_trevor_rails/blocks/browse_block_spec.rb +++ b/spec/models/sir_trevor_rails/blocks/browse_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe SirTrevorRails::Blocks::BrowseBlock do +RSpec.describe SirTrevorRails::Blocks::BrowseBlock do subject { described_class.new({ type: '', data: block_data }, page) } let(:page) { FactoryBot.create(:feature_page) } diff --git a/spec/models/sir_trevor_rails/blocks/browse_group_categories_block_spec.rb b/spec/models/sir_trevor_rails/blocks/browse_group_categories_block_spec.rb index c397fdad4..344212630 100644 --- a/spec/models/sir_trevor_rails/blocks/browse_group_categories_block_spec.rb +++ b/spec/models/sir_trevor_rails/blocks/browse_group_categories_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe SirTrevorRails::Blocks::BrowseGroupCategoriesBlock do +RSpec.describe SirTrevorRails::Blocks::BrowseGroupCategoriesBlock do subject { described_class.new({ type: '', data: block_data }, page) } let!(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/models/sir_trevor_rails/blocks/featured_pages_block_spec.rb b/spec/models/sir_trevor_rails/blocks/featured_pages_block_spec.rb index 2d598eabb..ca0eb4612 100644 --- a/spec/models/sir_trevor_rails/blocks/featured_pages_block_spec.rb +++ b/spec/models/sir_trevor_rails/blocks/featured_pages_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe SirTrevorRails::Blocks::FeaturedPagesBlock do +RSpec.describe SirTrevorRails::Blocks::FeaturedPagesBlock do subject { described_class.new({ type: '', data: block_data }, page) } let(:page) { FactoryBot.create(:feature_page, exhibit:) } diff --git a/spec/models/sir_trevor_rails/blocks/search_results_block_spec.rb b/spec/models/sir_trevor_rails/blocks/search_results_block_spec.rb index 739ed8961..b94e4b990 100644 --- a/spec/models/sir_trevor_rails/blocks/search_results_block_spec.rb +++ b/spec/models/sir_trevor_rails/blocks/search_results_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe SirTrevorRails::Blocks::SearchResultsBlock do +RSpec.describe SirTrevorRails::Blocks::SearchResultsBlock do subject { described_class.new({ type: '', data: block_data }, page) } let(:page) { FactoryBot.create(:feature_page) } diff --git a/spec/models/sir_trevor_rails/blocks/solr_documents_block_spec.rb b/spec/models/sir_trevor_rails/blocks/solr_documents_block_spec.rb index 78c1525d5..505866127 100644 --- a/spec/models/sir_trevor_rails/blocks/solr_documents_block_spec.rb +++ b/spec/models/sir_trevor_rails/blocks/solr_documents_block_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe SirTrevorRails::Blocks::SolrDocumentsBlock do +RSpec.describe SirTrevorRails::Blocks::SolrDocumentsBlock do subject { described_class.new({ type: '', data: block_data }, page) } let(:page) { FactoryBot.create(:feature_page) } diff --git a/spec/models/sir_trevor_rails/blocks/textable_spec.rb b/spec/models/sir_trevor_rails/blocks/textable_spec.rb index 532b3a5ed..24c4648c1 100644 --- a/spec/models/sir_trevor_rails/blocks/textable_spec.rb +++ b/spec/models/sir_trevor_rails/blocks/textable_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe SirTrevorRails::Blocks::Textable do +RSpec.describe SirTrevorRails::Blocks::Textable do class TextableTestClass include SirTrevorRails::Blocks::Textable attr_accessor :text diff --git a/spec/models/solr_document_spec.rb b/spec/models/solr_document_spec.rb index 28fe50041..2ef40040c 100644 --- a/spec/models/solr_document_spec.rb +++ b/spec/models/solr_document_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe SolrDocument, type: :model do +RSpec.describe SolrDocument, type: :model do subject { document } let(:document) { described_class.new(id: 'abcd123') } diff --git a/spec/models/spotlight/ability_spec.rb b/spec/models/spotlight/ability_spec.rb index df62d699d..6761bf7df 100644 --- a/spec/models/spotlight/ability_spec.rb +++ b/spec/models/spotlight/ability_spec.rb @@ -2,7 +2,7 @@ require 'cancan/matchers' -describe Spotlight::Ability, type: :model do +RSpec.describe Spotlight::Ability, type: :model do subject { Ability.new(user) } before do diff --git a/spec/models/spotlight/about_page_spec.rb b/spec/models/spotlight/about_page_spec.rb index c8b20cf22..6ed01fd74 100644 --- a/spec/models/spotlight/about_page_spec.rb +++ b/spec/models/spotlight/about_page_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::AboutPage, type: :model do +RSpec.describe Spotlight::AboutPage, type: :model do let(:page) { described_class.create! exhibit: FactoryBot.create(:exhibit) } it { is_expected.not_to be_feature_page } diff --git a/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb b/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb index 2d87c0684..83c8a98c2 100644 --- a/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +++ b/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::AccessControlsEnforcementSearchBuilder do +RSpec.describe Spotlight::AccessControlsEnforcementSearchBuilder do class MockSearchBuilder < Blacklight::SearchBuilder attr_reader :blacklight_params, :scope diff --git a/spec/models/spotlight/analytics/ga_spec.rb b/spec/models/spotlight/analytics/ga_spec.rb index b91e0de56..7dcf8e2f0 100644 --- a/spec/models/spotlight/analytics/ga_spec.rb +++ b/spec/models/spotlight/analytics/ga_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Analytics::Ga do +RSpec.describe Spotlight::Analytics::Ga do it 'does not be enabled without configuration' do expect(subject).not_to be_enabled end diff --git a/spec/models/spotlight/background_job_progress_spec.rb b/spec/models/spotlight/background_job_progress_spec.rb index bbd755d7c..314257eb3 100644 --- a/spec/models/spotlight/background_job_progress_spec.rb +++ b/spec/models/spotlight/background_job_progress_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::BackgroundJobProgress, type: :model do +RSpec.describe Spotlight::BackgroundJobProgress, type: :model do subject(:progress) { described_class.new(exhibit, job_class: Spotlight::ReindexExhibitJob) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/models/spotlight/blacklight_configuration_spec.rb b/spec/models/spotlight/blacklight_configuration_spec.rb index 1a632afef..2efbadae0 100644 --- a/spec/models/spotlight/blacklight_configuration_spec.rb +++ b/spec/models/spotlight/blacklight_configuration_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::BlacklightConfiguration, type: :model do +RSpec.describe Spotlight::BlacklightConfiguration, type: :model do subject { described_class.new } let(:blacklight_config) { Blacklight::Configuration.new } diff --git a/spec/models/spotlight/browse_category_search_builder_spec.rb b/spec/models/spotlight/browse_category_search_builder_spec.rb index 6b1e804e4..72c84c5df 100644 --- a/spec/models/spotlight/browse_category_search_builder_spec.rb +++ b/spec/models/spotlight/browse_category_search_builder_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::BrowseCategorySearchBuilder do +RSpec.describe Spotlight::BrowseCategorySearchBuilder do class BrowseCategoryMockSearchBuilder < Blacklight::SearchBuilder include Blacklight::Solr::SearchBuilderBehavior include Spotlight::BrowseCategorySearchBuilder diff --git a/spec/models/spotlight/contact_email_spec.rb b/spec/models/spotlight/contact_email_spec.rb index 377efbbc4..d21b1560c 100644 --- a/spec/models/spotlight/contact_email_spec.rb +++ b/spec/models/spotlight/contact_email_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ContactEmail, type: :model do +RSpec.describe Spotlight::ContactEmail, type: :model do subject { described_class.new(exhibit:) } let(:exhibit) { FactoryBot.build_stubbed(:exhibit) } diff --git a/spec/models/spotlight/contact_form_spec.rb b/spec/models/spotlight/contact_form_spec.rb index 1c7688e62..f3c75c6b9 100644 --- a/spec/models/spotlight/contact_form_spec.rb +++ b/spec/models/spotlight/contact_form_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ContactForm do +RSpec.describe Spotlight::ContactForm do subject { described_class.new(name: 'Root', email: 'user@example.com') } let(:exhibit) { FactoryBot.build_stubbed(:exhibit) } diff --git a/spec/models/spotlight/contact_image_spec.rb b/spec/models/spotlight/contact_image_spec.rb index f6180d2c2..7d5622aaf 100644 --- a/spec/models/spotlight/contact_image_spec.rb +++ b/spec/models/spotlight/contact_image_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ContactImage do +RSpec.describe Spotlight::ContactImage do subject(:contact_image) do described_class.new(iiif_tilesource: 'http://example.com/iiif/abc123/info.json') end diff --git a/spec/models/spotlight/contact_spec.rb b/spec/models/spotlight/contact_spec.rb index 03b39269b..05b0b9b89 100644 --- a/spec/models/spotlight/contact_spec.rb +++ b/spec/models/spotlight/contact_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Contact, type: :model do +RSpec.describe Spotlight::Contact, type: :model do let(:exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/models/spotlight/custom_field_spec.rb b/spec/models/spotlight/custom_field_spec.rb index 908f868ee..2dda4d052 100644 --- a/spec/models/spotlight/custom_field_spec.rb +++ b/spec/models/spotlight/custom_field_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::CustomField, type: :model do +RSpec.describe Spotlight::CustomField, type: :model do describe '#label' do subject { described_class.new configuration: { 'label' => 'the configured label' }, field: 'foo_tesim' } diff --git a/spec/models/spotlight/custom_search_field_spec.rb b/spec/models/spotlight/custom_search_field_spec.rb index 03d913177..225bdf191 100644 --- a/spec/models/spotlight/custom_search_field_spec.rb +++ b/spec/models/spotlight/custom_search_field_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::CustomSearchField, type: :model do +RSpec.describe Spotlight::CustomSearchField, type: :model do describe '#label' do subject { described_class.new configuration: { 'label' => 'the configured label' }, slug: 'foo' } diff --git a/spec/models/spotlight/custom_translation_extension_spec.rb b/spec/models/spotlight/custom_translation_extension_spec.rb index 1c46f9216..37287f04b 100644 --- a/spec/models/spotlight/custom_translation_extension_spec.rb +++ b/spec/models/spotlight/custom_translation_extension_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::CustomTranslationExtension do +RSpec.describe Spotlight::CustomTranslationExtension do subject do Class.new(ActiveRecord::Base) do include Spotlight::CustomTranslationExtension diff --git a/spec/models/spotlight/exhibit_spec.rb b/spec/models/spotlight/exhibit_spec.rb index f5172daa1..980e8fd65 100644 --- a/spec/models/spotlight/exhibit_spec.rb +++ b/spec/models/spotlight/exhibit_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Exhibit, type: :model do +RSpec.describe Spotlight::Exhibit, type: :model do subject(:exhibit) { FactoryBot.build(:exhibit, title: 'Sample') } it 'has a title' do diff --git a/spec/models/spotlight/exhibit_thumbnail_spec.rb b/spec/models/spotlight/exhibit_thumbnail_spec.rb index 6fc6c053a..07a7988dc 100644 --- a/spec/models/spotlight/exhibit_thumbnail_spec.rb +++ b/spec/models/spotlight/exhibit_thumbnail_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ExhibitThumbnail do +RSpec.describe Spotlight::ExhibitThumbnail do subject(:exhibit_thumbnail) { described_class.new } it 'includes the appropriate size in the iiif_url' do diff --git a/spec/models/spotlight/feature_page_spec.rb b/spec/models/spotlight/feature_page_spec.rb index ba690d5df..1b0c23b2c 100644 --- a/spec/models/spotlight/feature_page_spec.rb +++ b/spec/models/spotlight/feature_page_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::FeaturePage, type: :model do +RSpec.describe Spotlight::FeaturePage, type: :model do let(:exhibit) { FactoryBot.create(:exhibit) } describe 'default_scope' do diff --git a/spec/models/spotlight/featured_image_spec.rb b/spec/models/spotlight/featured_image_spec.rb index b4386ec0b..4170ec047 100644 --- a/spec/models/spotlight/featured_image_spec.rb +++ b/spec/models/spotlight/featured_image_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::FeaturedImage do +RSpec.describe Spotlight::FeaturedImage do subject(:featured_image) { described_class.new } let(:temp_image) { FactoryBot.create(:temporary_image) } diff --git a/spec/models/spotlight/field_metadata_spec.rb b/spec/models/spotlight/field_metadata_spec.rb index 2f9f4ef9a..d898f4650 100644 --- a/spec/models/spotlight/field_metadata_spec.rb +++ b/spec/models/spotlight/field_metadata_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::FieldMetadata do +RSpec.describe Spotlight::FieldMetadata do subject { described_class.new(exhibit, repository, blacklight_config) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/models/spotlight/filter_spec.rb b/spec/models/spotlight/filter_spec.rb index 4c0044d33..39722cb74 100644 --- a/spec/models/spotlight/filter_spec.rb +++ b/spec/models/spotlight/filter_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Filter do +RSpec.describe Spotlight::Filter do context 'with a simple string field' do subject { described_class.new(field: 'x', value: 'y') } diff --git a/spec/models/spotlight/group_spec.rb b/spec/models/spotlight/group_spec.rb index b99abf16e..30b8782c0 100644 --- a/spec/models/spotlight/group_spec.rb +++ b/spec/models/spotlight/group_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Group, type: :model do +RSpec.describe Spotlight::Group, type: :model do let(:exhibit) { FactoryBot.create(:exhibit) } describe '#searches' do diff --git a/spec/models/spotlight/home_page_spec.rb b/spec/models/spotlight/home_page_spec.rb index ddb9285aa..e127307da 100644 --- a/spec/models/spotlight/home_page_spec.rb +++ b/spec/models/spotlight/home_page_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::HomePage, type: :model do +RSpec.describe Spotlight::HomePage, type: :model do let(:home_page) { FactoryBot.create(:home_page) } it { is_expected.not_to be_feature_page } diff --git a/spec/models/spotlight/main_navigation_spec.rb b/spec/models/spotlight/main_navigation_spec.rb index 57b77b4d7..d24b4ed38 100644 --- a/spec/models/spotlight/main_navigation_spec.rb +++ b/spec/models/spotlight/main_navigation_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::MainNavigation, type: :model do +RSpec.describe Spotlight::MainNavigation, type: :model do before do subject.exhibit = FactoryBot.create(:exhibit) end diff --git a/spec/models/spotlight/masthead_spec.rb b/spec/models/spotlight/masthead_spec.rb index b1f51b652..d750639ee 100644 --- a/spec/models/spotlight/masthead_spec.rb +++ b/spec/models/spotlight/masthead_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Masthead, type: :model do +RSpec.describe Spotlight::Masthead, type: :model do let(:masthead) { stub_model(described_class) } describe '#iiif_url' do diff --git a/spec/models/spotlight/page_configurations_spec.rb b/spec/models/spotlight/page_configurations_spec.rb index 9680a00c8..c9ca97804 100644 --- a/spec/models/spotlight/page_configurations_spec.rb +++ b/spec/models/spotlight/page_configurations_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::PageConfigurations, type: :model do +RSpec.describe Spotlight::PageConfigurations, type: :model do subject(:page_config) { described_class.new(context: view_context, page:) } let(:view_context) do diff --git a/spec/models/spotlight/page_spec.rb b/spec/models/spotlight/page_spec.rb index 813802371..267b3c976 100644 --- a/spec/models/spotlight/page_spec.rb +++ b/spec/models/spotlight/page_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Page, type: :model do +RSpec.describe Spotlight::Page, type: :model do let(:exhibit) { FactoryBot.create(:exhibit) } let!(:parent_page) { Spotlight::FeaturePage.create! exhibit:, published: true } let!(:child_page) { Spotlight::FeaturePage.create! exhibit:, published: false, parent_page: } diff --git a/spec/models/spotlight/resource_spec.rb b/spec/models/spotlight/resource_spec.rb index ff2ba6232..ef8814002 100644 --- a/spec/models/spotlight/resource_spec.rb +++ b/spec/models/spotlight/resource_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Resource, type: :model do +RSpec.describe Spotlight::Resource, type: :model do subject(:resource) { described_class.create(id: 123, exhibit:) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/models/spotlight/resources/iiif_harvester_spec.rb b/spec/models/spotlight/resources/iiif_harvester_spec.rb index deca28863..2efaa98e8 100644 --- a/spec/models/spotlight/resources/iiif_harvester_spec.rb +++ b/spec/models/spotlight/resources/iiif_harvester_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Spotlight::Resources::IiifHarvester do +RSpec.describe Spotlight::Resources::IiifHarvester do subject(:harvester) { described_class.create(exhibit_id: exhibit.id, url:) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/models/spotlight/resources/iiif_manifest_spec.rb b/spec/models/spotlight/resources/iiif_manifest_spec.rb index 3c9d5728b..c969e60d9 100644 --- a/spec/models/spotlight/resources/iiif_manifest_spec.rb +++ b/spec/models/spotlight/resources/iiif_manifest_spec.rb @@ -12,7 +12,7 @@ def to_solr def label; end end -describe Spotlight::Resources::IiifManifest do +RSpec.describe Spotlight::Resources::IiifManifest do subject { described_class.new(url:, manifest:, collection:) } let(:url) { 'uri://to-manifest' } diff --git a/spec/models/spotlight/resources/iiif_service_spec.rb b/spec/models/spotlight/resources/iiif_service_spec.rb index bd915b08c..ad8801218 100644 --- a/spec/models/spotlight/resources/iiif_service_spec.rb +++ b/spec/models/spotlight/resources/iiif_service_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Spotlight::Resources::IiifService do +RSpec.describe Spotlight::Resources::IiifService do subject { described_class.new(url) } let(:url) { 'uri://for-top-level-collection' } diff --git a/spec/models/spotlight/resources/upload_spec.rb b/spec/models/spotlight/resources/upload_spec.rb index 77257ac3c..2ef64daad 100644 --- a/spec/models/spotlight/resources/upload_spec.rb +++ b/spec/models/spotlight/resources/upload_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Resources::Upload, type: :model do +RSpec.describe Spotlight::Resources::Upload, type: :model do subject(:upload) { described_class.new(id: 42, exhibit:) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/models/spotlight/resources/web_spec.rb b/spec/models/spotlight/resources/web_spec.rb index 1810f0a00..8f8c47c5c 100644 --- a/spec/models/spotlight/resources/web_spec.rb +++ b/spec/models/spotlight/resources/web_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Resources::Web, type: :model do +RSpec.describe Spotlight::Resources::Web, type: :model do class TestResource < Spotlight::Resource include Spotlight::Resources::Web end diff --git a/spec/models/spotlight/role_spec.rb b/spec/models/spotlight/role_spec.rb index 36ef3b86b..01dcff2ba 100644 --- a/spec/models/spotlight/role_spec.rb +++ b/spec/models/spotlight/role_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Role, type: :model do +RSpec.describe Spotlight::Role, type: :model do describe 'validations' do subject { described_class.new(args) } diff --git a/spec/models/spotlight/search_spec.rb b/spec/models/spotlight/search_spec.rb index ccdd0a2f6..61d25bfbf 100644 --- a/spec/models/spotlight/search_spec.rb +++ b/spec/models/spotlight/search_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Search, type: :model do +RSpec.describe Spotlight::Search, type: :model do subject { exhibit.searches.build(title: 'Search', query_params:) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/models/spotlight/site_spec.rb b/spec/models/spotlight/site_spec.rb index 19e72be71..51c645eeb 100644 --- a/spec/models/spotlight/site_spec.rb +++ b/spec/models/spotlight/site_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Site do +RSpec.describe Spotlight::Site do describe '.instance' do it 'is a singleton' do expect(described_class.instance).to eq described_class.instance diff --git a/spec/models/spotlight/sitemap_spec.rb b/spec/models/spotlight/sitemap_spec.rb index 2c17053d5..3f9fcad46 100644 --- a/spec/models/spotlight/sitemap_spec.rb +++ b/spec/models/spotlight/sitemap_spec.rb @@ -2,7 +2,7 @@ require 'sitemap_generator' -describe Spotlight::Sitemap do +RSpec.describe Spotlight::Sitemap do subject { described_class.new(sitemap, exhibit) } let(:sitemap) { SitemapGenerator::Interpreter.new } diff --git a/spec/models/spotlight/solr_document/atomic_updates_spec.rb b/spec/models/spotlight/solr_document/atomic_updates_spec.rb index 761ea3b65..782a7a7ff 100644 --- a/spec/models/spotlight/solr_document/atomic_updates_spec.rb +++ b/spec/models/spotlight/solr_document/atomic_updates_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::SolrDocument::AtomicUpdates, type: :model do +RSpec.describe Spotlight::SolrDocument::AtomicUpdates, type: :model do subject do SolrDocument.new.extend(described_class) end diff --git a/spec/models/spotlight/solr_document/uploaded_resource_spec.rb b/spec/models/spotlight/solr_document/uploaded_resource_spec.rb index e11f4f908..97c41d53b 100644 --- a/spec/models/spotlight/solr_document/uploaded_resource_spec.rb +++ b/spec/models/spotlight/solr_document/uploaded_resource_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::SolrDocument::UploadedResource, type: :model do +RSpec.describe Spotlight::SolrDocument::UploadedResource, type: :model do let(:valid_resource) do SolrDocument.new(id: '123', full_image_url_ssm: ['http://example.com/png.png'], diff --git a/spec/models/spotlight/solr_document_sidecar_spec.rb b/spec/models/spotlight/solr_document_sidecar_spec.rb index 768cfd2e5..fd15274ba 100644 --- a/spec/models/spotlight/solr_document_sidecar_spec.rb +++ b/spec/models/spotlight/solr_document_sidecar_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::SolrDocumentSidecar, type: :model do +RSpec.describe Spotlight::SolrDocumentSidecar, type: :model do let(:exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/models/spotlight/user_spec.rb b/spec/models/spotlight/user_spec.rb index 8c4880d70..d2758edce 100644 --- a/spec/models/spotlight/user_spec.rb +++ b/spec/models/spotlight/user_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::User do +RSpec.describe Spotlight::User do subject { Class.new } before { subject.extend described_class } diff --git a/spec/models/translation_spec.rb b/spec/models/translation_spec.rb index 491bd4e9b..71b8f0159 100644 --- a/spec/models/translation_spec.rb +++ b/spec/models/translation_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Translation, type: :model do +RSpec.describe Translation, type: :model do let(:exhibit) { FactoryBot.create(:exhibit) } describe 'is unique by key, locale, and exhibit' do diff --git a/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb b/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb index 2bd5a930d..b15252fbf 100644 --- a/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +++ b/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::IiifManifestPresenter do +RSpec.describe Spotlight::IiifManifestPresenter do require 'iiif_manifest' let(:resource) { SolrDocument.new(id: '1-1') } diff --git a/spec/routing/spotlight/featured_images_spec.rb b/spec/routing/spotlight/featured_images_spec.rb index d9a87b5f9..86817a906 100644 --- a/spec/routing/spotlight/featured_images_spec.rb +++ b/spec/routing/spotlight/featured_images_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'Featured Images Controller', type: :routing do +RSpec.describe 'Featured Images Controller', type: :routing do describe 'routing' do routes { Spotlight::Engine.routes } diff --git a/spec/routing/spotlight/pages_routing_spec.rb b/spec/routing/spotlight/pages_routing_spec.rb index 06a535544..0f31d4b96 100644 --- a/spec/routing/spotlight/pages_routing_spec.rb +++ b/spec/routing/spotlight/pages_routing_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'FeaturePagesController and AboutPagesController', type: :routing do +RSpec.describe 'FeaturePagesController and AboutPagesController', type: :routing do describe 'routing' do routes { Spotlight::Engine.routes } diff --git a/spec/services/spotlight/etl/context_spec.rb b/spec/services/spotlight/etl/context_spec.rb index 4435066bd..6ed2101ec 100644 --- a/spec/services/spotlight/etl/context_spec.rb +++ b/spec/services/spotlight/etl/context_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Etl::Context do +RSpec.describe Spotlight::Etl::Context do subject(:context) { described_class.new(resource, **context_args) } let(:resource) { instance_double(Spotlight::Resource, id: 123, document_model: SolrDocument) } diff --git a/spec/services/spotlight/etl/executor_spec.rb b/spec/services/spotlight/etl/executor_spec.rb index 2624c3282..fb2e01a2e 100644 --- a/spec/services/spotlight/etl/executor_spec.rb +++ b/spec/services/spotlight/etl/executor_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Etl::Executor do +RSpec.describe Spotlight::Etl::Executor do subject(:executor) { described_class.new(pipeline, context) } let(:pipeline) do diff --git a/spec/services/spotlight/etl/pipeline_spec.rb b/spec/services/spotlight/etl/pipeline_spec.rb index f37875df7..5c0d3d6e3 100644 --- a/spec/services/spotlight/etl/pipeline_spec.rb +++ b/spec/services/spotlight/etl/pipeline_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Etl::Pipeline do +RSpec.describe Spotlight::Etl::Pipeline do let(:mock_executor) { instance_double(Spotlight::Etl::Executor, call: 'result', estimated_size: 10) } let(:context) { instance_double(Spotlight::Etl::Context) } diff --git a/spec/services/spotlight/etl/solr_loader_spec.rb b/spec/services/spotlight/etl/solr_loader_spec.rb index 8505a9ec3..8e9d4145b 100644 --- a/spec/services/spotlight/etl/solr_loader_spec.rb +++ b/spec/services/spotlight/etl/solr_loader_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Etl::SolrLoader do +RSpec.describe Spotlight::Etl::SolrLoader do subject(:loader) { described_class.new(batch_size: 5, solr_connection: mock_connection) } let(:mock_connection) { instance_double(RSolr::Client, commit: nil, update: nil) } diff --git a/spec/services/spotlight/etl/step_spec.rb b/spec/services/spotlight/etl/step_spec.rb index 17ed465ca..97b910ec4 100644 --- a/spec/services/spotlight/etl/step_spec.rb +++ b/spec/services/spotlight/etl/step_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::Etl::Step do +RSpec.describe Spotlight::Etl::Step do subject(:step) { described_class.new(definition, **step_args) } let(:definition) { ->(a = nil) { a || 'value' } } diff --git a/spec/services/spotlight/exhibit_import_export_service_spec.rb b/spec/services/spotlight/exhibit_import_export_service_spec.rb index 5bf97e4e8..c3110deb6 100644 --- a/spec/services/spotlight/exhibit_import_export_service_spec.rb +++ b/spec/services/spotlight/exhibit_import_export_service_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::ExhibitImportExportService do +RSpec.describe Spotlight::ExhibitImportExportService do subject { JSON.parse(described_class.new(source_exhibit).to_json) } let!(:source_exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/services/spotlight/iiif_resource_resolver_spec.rb b/spec/services/spotlight/iiif_resource_resolver_spec.rb index ce652106c..3d660e31e 100644 --- a/spec/services/spotlight/iiif_resource_resolver_spec.rb +++ b/spec/services/spotlight/iiif_resource_resolver_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::IiifResourceResolver do +RSpec.describe Spotlight::IiifResourceResolver do subject(:resolver) { described_class.new(resource) } let(:fixture_json) do diff --git a/spec/services/spotlight/invite_users_service_spec.rb b/spec/services/spotlight/invite_users_service_spec.rb index 1c2321bcb..ae41c59c9 100644 --- a/spec/services/spotlight/invite_users_service_spec.rb +++ b/spec/services/spotlight/invite_users_service_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::InviteUsersService do +RSpec.describe Spotlight::InviteUsersService do subject { described_class.call(resource:) } let(:resource) do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6e7b73bf7..9eb7163ca 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -94,6 +94,8 @@ expectations.include_chain_clauses_in_custom_matcher_descriptions = true end + config.disable_monkey_patching! + config.default_formatter = 'doc' if config.files_to_run.one? config.shared_context_metadata_behavior = :apply_to_host_groups diff --git a/spec/uploaders/spotlight/attachment_uploader_spec.rb b/spec/uploaders/spotlight/attachment_uploader_spec.rb index 2966fc8c2..893c430a9 100644 --- a/spec/uploaders/spotlight/attachment_uploader_spec.rb +++ b/spec/uploaders/spotlight/attachment_uploader_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::AttachmentUploader do +RSpec.describe Spotlight::AttachmentUploader do subject(:attachment_uploader) { described_class.new(mounter, 'mounted_as') } let(:mounter) { Spotlight::Attachment.new(id: '5') } diff --git a/spec/uploaders/spotlight/featured_image_uploader_spec.rb b/spec/uploaders/spotlight/featured_image_uploader_spec.rb index 9309a4e14..d8b84c775 100644 --- a/spec/uploaders/spotlight/featured_image_uploader_spec.rb +++ b/spec/uploaders/spotlight/featured_image_uploader_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe Spotlight::FeaturedImageUploader do +RSpec.describe Spotlight::FeaturedImageUploader do subject(:featured_image_uploader) { described_class.new(mounter, 'mounted_as') } let(:mounter) { FactoryBot.create(:featured_image) } diff --git a/spec/views/shared/_analytics.html.erb_spec.rb b/spec/views/shared/_analytics.html.erb_spec.rb index 57884ef04..35d37bc1c 100644 --- a/spec/views/shared/_analytics.html.erb_spec.rb +++ b/spec/views/shared/_analytics.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'shared/_analytics', type: :view do +RSpec.describe 'shared/_analytics', type: :view do it 'is empty without Google Analytics configured' do render expect(rendered).to be_empty diff --git a/spec/views/shared/_masthead.html.erb_spec.rb b/spec/views/shared/_masthead.html.erb_spec.rb index c9e253b59..b37a5a6ec 100644 --- a/spec/views/shared/_masthead.html.erb_spec.rb +++ b/spec/views/shared/_masthead.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'shared/_masthead', type: :view do +RSpec.describe 'shared/_masthead', type: :view do let(:exhibit) { FactoryBot.create(:exhibit, subtitle: 'Some exhibit') } let(:masthead) { nil } diff --git a/spec/views/shared/_user_util_links.html.erb_spec.rb b/spec/views/shared/_user_util_links.html.erb_spec.rb index 7c43b87db..e3925aa63 100644 --- a/spec/views/shared/_user_util_links.html.erb_spec.rb +++ b/spec/views/shared/_user_util_links.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'shared/_user_util_links', type: :view do +RSpec.describe 'shared/_user_util_links', type: :view do let(:current_exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/views/spotlight/about_pages/_empty.html.erb_spec.rb b/spec/views/spotlight/about_pages/_empty.html.erb_spec.rb index d3f332e70..3acd24e58 100644 --- a/spec/views/spotlight/about_pages/_empty.html.erb_spec.rb +++ b/spec/views/spotlight/about_pages/_empty.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/about_pages/_empty.html.erb', type: :view do +RSpec.describe 'spotlight/about_pages/_empty.html.erb', type: :view do let(:can?) { false } before do diff --git a/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb b/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb index 1acbb61b9..68000173a 100644 --- a/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb +++ b/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/about_pages/_sidebar.html.erb', type: :view do +RSpec.describe 'spotlight/about_pages/_sidebar.html.erb', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let!(:page1) { FactoryBot.create(:about_page, title: 'One', weight: 4, exhibit:) } let!(:page2) { FactoryBot.create(:about_page, exhibit:, title: 'Two', published: false) } diff --git a/spec/views/spotlight/about_pages/index.html.erb_spec.rb b/spec/views/spotlight/about_pages/index.html.erb_spec.rb index 82ebec9a0..57c35cfe6 100644 --- a/spec/views/spotlight/about_pages/index.html.erb_spec.rb +++ b/spec/views/spotlight/about_pages/index.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/about_pages/index.html.erb', type: :view do +RSpec.describe 'spotlight/about_pages/index.html.erb', type: :view do let(:pages) do [ stub_model(Spotlight::AboutPage, diff --git a/spec/views/spotlight/browse/_search.html.erb_spec.rb b/spec/views/spotlight/browse/_search.html.erb_spec.rb index 3ccae578f..b3b6c013b 100644 --- a/spec/views/spotlight/browse/_search.html.erb_spec.rb +++ b/spec/views/spotlight/browse/_search.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/browse/search', type: :view do +RSpec.describe 'spotlight/browse/search', type: :view do let(:search) { FactoryBot.create(:search) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/views/spotlight/browse/index.html.erb_spec.rb b/spec/views/spotlight/browse/index.html.erb_spec.rb index e8d0a9d12..8f4671825 100644 --- a/spec/views/spotlight/browse/index.html.erb_spec.rb +++ b/spec/views/spotlight/browse/index.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/browse/index', type: :view do +RSpec.describe 'spotlight/browse/index', type: :view do let(:search) { FactoryBot.create(:search) } let(:another_search) { FactoryBot.create(:search) } diff --git a/spec/views/spotlight/browse/show.html.erb_spec.rb b/spec/views/spotlight/browse/show.html.erb_spec.rb index 05fea4341..a39c9c6cf 100644 --- a/spec/views/spotlight/browse/show.html.erb_spec.rb +++ b/spec/views/spotlight/browse/show.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/browse/show', type: :view do +RSpec.describe 'spotlight/browse/show', type: :view do let(:search) { FactoryBot.create(:published_search) } let(:exhibit) { FactoryBot.create(:exhibit) } diff --git a/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb b/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb index f82f90865..ffaf981a4 100644 --- a/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb +++ b/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/catalog/_edit_default.html.erb', type: :view do +RSpec.describe 'spotlight/catalog/_edit_default.html.erb', type: :view do let(:blacklight_config) do Blacklight::Configuration.new do |config| config.index.title_field = :title_field diff --git a/spec/views/spotlight/catalog/admin.html.erb_spec.rb b/spec/views/spotlight/catalog/admin.html.erb_spec.rb index 73401a2ad..768ddb8de 100644 --- a/spec/views/spotlight/catalog/admin.html.erb_spec.rb +++ b/spec/views/spotlight/catalog/admin.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/catalog/admin.html.erb', type: :view do +RSpec.describe 'spotlight/catalog/admin.html.erb', type: :view do let(:exhibit) { stub_model(Spotlight::Exhibit) } let(:blacklight_config) { CatalogController.blacklight_config } diff --git a/spec/views/spotlight/catalog/edit.html.erb_spec.rb b/spec/views/spotlight/catalog/edit.html.erb_spec.rb index 5f290c65d..7731f8851 100644 --- a/spec/views/spotlight/catalog/edit.html.erb_spec.rb +++ b/spec/views/spotlight/catalog/edit.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/catalog/edit.html.erb', type: :view do +RSpec.describe 'spotlight/catalog/edit.html.erb', type: :view do let(:blacklight_config) { Blacklight::Configuration.new } let(:document) { stub_model(SolrDocument) } diff --git a/spec/views/spotlight/contacts/edit.html.erb_spec.rb b/spec/views/spotlight/contacts/edit.html.erb_spec.rb index e2241351d..f01b4fd74 100644 --- a/spec/views/spotlight/contacts/edit.html.erb_spec.rb +++ b/spec/views/spotlight/contacts/edit.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/contacts/edit.html.erb' do +RSpec.describe 'spotlight/contacts/edit.html.erb' do let(:exhibit) { FactoryBot.create(:exhibit) } let(:contact) do diff --git a/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb b/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb index 34f69c2ae..1e236984f 100644 --- a/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +++ b/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/dashboards/_reindexing_activity.html.erb', type: :view do +RSpec.describe 'spotlight/dashboards/_reindexing_activity.html.erb', type: :view do let(:p) { 'spotlight/dashboards/reindexing_activity' } let(:exhibit) { FactoryBot.build(:exhibit) } diff --git a/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb b/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb index 4701c925e..6ff9a6a30 100644 --- a/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb +++ b/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/dashboards/analytics.html.erb', type: :view do +RSpec.describe 'spotlight/dashboards/analytics.html.erb', type: :view do let(:current_exhibit) { FactoryBot.create(:exhibit) } let(:enabled) { true } let(:data) do diff --git a/spec/views/spotlight/exhibits/_exhibit_card.html.erb_spec.rb b/spec/views/spotlight/exhibits/_exhibit_card.html.erb_spec.rb index 409531f18..609c7d0ea 100644 --- a/spec/views/spotlight/exhibits/_exhibit_card.html.erb_spec.rb +++ b/spec/views/spotlight/exhibits/_exhibit_card.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/exhibits/_exhibit_card.html.erb', type: :view do +RSpec.describe 'spotlight/exhibits/_exhibit_card.html.erb', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let(:p) { 'spotlight/exhibits/exhibit_card' } diff --git a/spec/views/spotlight/exhibits/_form.html.erb_spec.rb b/spec/views/spotlight/exhibits/_form.html.erb_spec.rb index 51a95fb04..37c0e67a1 100644 --- a/spec/views/spotlight/exhibits/_form.html.erb_spec.rb +++ b/spec/views/spotlight/exhibits/_form.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/exhibits/_form', type: :view do +RSpec.describe 'spotlight/exhibits/_form', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/views/spotlight/exhibits/edit.html.erb_spec.rb b/spec/views/spotlight/exhibits/edit.html.erb_spec.rb index 05d3ecdde..08db78e5f 100644 --- a/spec/views/spotlight/exhibits/edit.html.erb_spec.rb +++ b/spec/views/spotlight/exhibits/edit.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/exhibits/edit', type: :view do +RSpec.describe 'spotlight/exhibits/edit', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/views/spotlight/exhibits/index.html.erb_spec.rb b/spec/views/spotlight/exhibits/index.html.erb_spec.rb index a80ba7fa9..3bb2e421e 100644 --- a/spec/views/spotlight/exhibits/index.html.erb_spec.rb +++ b/spec/views/spotlight/exhibits/index.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/exhibits/index', type: :view do +RSpec.describe 'spotlight/exhibits/index', type: :view do let(:exhibits) { Spotlight::Exhibit.none } let(:published_exhibits) { exhibits.published.page(1) } diff --git a/spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb b/spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb index d34f2e7f7..0efc537b0 100644 --- a/spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb +++ b/spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/feature_pages/_empty.html.erb', type: :view do +RSpec.describe 'spotlight/feature_pages/_empty.html.erb', type: :view do let(:can?) { false } before do diff --git a/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb b/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb index d50484ebc..04bd8bda7 100644 --- a/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +++ b/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/feature_pages/_sidebar.html.erb', type: :view do +RSpec.describe 'spotlight/feature_pages/_sidebar.html.erb', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let!(:parent1) { FactoryBot.create(:feature_page, exhibit:, title: 'Parent Page') } let!(:parent2) { FactoryBot.create(:feature_page, exhibit:, title: 'Two') } diff --git a/spec/views/spotlight/featured_images/_form.html.erb_spec.rb b/spec/views/spotlight/featured_images/_form.html.erb_spec.rb index 747926abe..e624b0327 100644 --- a/spec/views/spotlight/featured_images/_form.html.erb_spec.rb +++ b/spec/views/spotlight/featured_images/_form.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/featured_images/_form', type: :view do +RSpec.describe 'spotlight/featured_images/_form', type: :view do let(:exhibit) { FactoryBot.create(:exhibit, :with_thumbnail) } let(:builder) { ActionView::Helpers::FormBuilder.new 'z', exhibit.thumbnail, view, {} } diff --git a/spec/views/spotlight/featured_images/_upload_form.html.erb_spec.rb b/spec/views/spotlight/featured_images/_upload_form.html.erb_spec.rb index 3931cc94f..3c61b845e 100644 --- a/spec/views/spotlight/featured_images/_upload_form.html.erb_spec.rb +++ b/spec/views/spotlight/featured_images/_upload_form.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/featured_images/_upload_form', type: :view do +RSpec.describe 'spotlight/featured_images/_upload_form', type: :view do let(:exhibit) { FactoryBot.create(:exhibit, :with_thumbnail) } let(:builder) { ActionView::Helpers::FormBuilder.new 'z', exhibit.thumbnail, view, {} } diff --git a/spec/views/spotlight/home_pages/_empty.html.erb_spec.rb b/spec/views/spotlight/home_pages/_empty.html.erb_spec.rb index 95fde3c5c..5dbbd5736 100644 --- a/spec/views/spotlight/home_pages/_empty.html.erb_spec.rb +++ b/spec/views/spotlight/home_pages/_empty.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/home_pages/_empty.html.erb', type: :view do +RSpec.describe 'spotlight/home_pages/_empty.html.erb', type: :view do describe 'resource providers' do before do allow(view).to receive_messages(current_exhibit: FactoryBot.create(:exhibit), diff --git a/spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb b/spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb index fb8a439bb..e3d6c1777 100644 --- a/spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb +++ b/spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/home_pages/_sidebar.html.erb', type: :view do +RSpec.describe 'spotlight/home_pages/_sidebar.html.erb', type: :view do before do stub_template 'catalog/_search_sidebar.html.erb' => 'Search Sidebar' end diff --git a/spec/views/spotlight/job_trackers/show.html.erb_spec.rb b/spec/views/spotlight/job_trackers/show.html.erb_spec.rb index 62ce462a6..c10307495 100644 --- a/spec/views/spotlight/job_trackers/show.html.erb_spec.rb +++ b/spec/views/spotlight/job_trackers/show.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/job_trackers/show', type: :view do +RSpec.describe 'spotlight/job_trackers/show', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let(:job_tracker) { FactoryBot.create(:job_tracker, job_class: 'Spotlight::ReindexExhibitJob', on: exhibit, user:) } let(:user) { FactoryBot.create(:user) } diff --git a/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb b/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb index 15e9e19b0..bf1f3722b 100644 --- a/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +++ b/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/metadata_configurations/_metadata_field', type: :view do +RSpec.describe 'spotlight/metadata_configurations/_metadata_field', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let(:field) { Blacklight::Configuration::Field.new label: 'Some label', immutable: OpenStruct.new(another_view_type: false) } let(:p) { 'spotlight/metadata_configurations/metadata_field' } diff --git a/spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb b/spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb index 93f4e7144..c2c8da4ed 100644 --- a/spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb +++ b/spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/metadata_configurations/edit', type: :view do +RSpec.describe 'spotlight/metadata_configurations/edit', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/views/spotlight/pages/_form.html.erb_spec.rb b/spec/views/spotlight/pages/_form.html.erb_spec.rb index dc1ce527c..f9a7798b0 100644 --- a/spec/views/spotlight/pages/_form.html.erb_spec.rb +++ b/spec/views/spotlight/pages/_form.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/pages/edit', type: :view do +RSpec.describe 'spotlight/pages/edit', type: :view do let(:exhibit) { stub_model(Spotlight::Exhibit) } let(:page) { stub_model(Spotlight::FeaturePage, exhibit:) } let :blacklight_config do diff --git a/spec/views/spotlight/pages/edit.html.erb_spec.rb b/spec/views/spotlight/pages/edit.html.erb_spec.rb index 961c86a90..06b3bc860 100644 --- a/spec/views/spotlight/pages/edit.html.erb_spec.rb +++ b/spec/views/spotlight/pages/edit.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/pages/edit', type: :view do +RSpec.describe 'spotlight/pages/edit', type: :view do let(:exhibit) { stub_model(Spotlight::Exhibit) } let(:page) { stub_model(Spotlight::FeaturePage, exhibit:) } diff --git a/spec/views/spotlight/pages/index.html.erb_spec.rb b/spec/views/spotlight/pages/index.html.erb_spec.rb index a5c3929fa..b0a7b72b6 100644 --- a/spec/views/spotlight/pages/index.html.erb_spec.rb +++ b/spec/views/spotlight/pages/index.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/pages/index.html.erb', type: :view do +RSpec.describe 'spotlight/pages/index.html.erb', type: :view do let(:pages) do [ stub_model(Spotlight::FeaturePage, diff --git a/spec/views/spotlight/pages/new.html.erb_spec.rb b/spec/views/spotlight/pages/new.html.erb_spec.rb index 9329062da..2f75d7158 100644 --- a/spec/views/spotlight/pages/new.html.erb_spec.rb +++ b/spec/views/spotlight/pages/new.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/pages/new', type: :view do +RSpec.describe 'spotlight/pages/new', type: :view do let(:exhibit) { stub_model(Spotlight::Exhibit) } before do diff --git a/spec/views/spotlight/pages/show.html.erb_spec.rb b/spec/views/spotlight/pages/show.html.erb_spec.rb index 6bd01ccb9..9a9575230 100644 --- a/spec/views/spotlight/pages/show.html.erb_spec.rb +++ b/spec/views/spotlight/pages/show.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/pages/show', type: :view do +RSpec.describe 'spotlight/pages/show', type: :view do let(:exhibit) { stub_model(Spotlight::Exhibit) } let(:page) do stub_model(Spotlight::FeaturePage, diff --git a/spec/views/spotlight/resources/_external_resources_form.html.erb_spec.rb b/spec/views/spotlight/resources/_external_resources_form.html.erb_spec.rb index e330d93c8..24d5211ad 100644 --- a/spec/views/spotlight/resources/_external_resources_form.html.erb_spec.rb +++ b/spec/views/spotlight/resources/_external_resources_form.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/resources/_external_resources_form.html.erb', type: :view do +RSpec.describe 'spotlight/resources/_external_resources_form.html.erb', type: :view do let(:blacklight_config) { Blacklight::Configuration.new } let(:exhibit) { stub_model(Spotlight::Exhibit) } diff --git a/spec/views/spotlight/resources/new.html.erb_spec.rb b/spec/views/spotlight/resources/new.html.erb_spec.rb index 14d8bef5a..bf2120857 100644 --- a/spec/views/spotlight/resources/new.html.erb_spec.rb +++ b/spec/views/spotlight/resources/new.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/resources/new.html.erb', type: :view do +RSpec.describe 'spotlight/resources/new.html.erb', type: :view do let(:blacklight_config) { Blacklight::Configuration.new } let(:exhibit) { stub_model(Spotlight::Exhibit) } diff --git a/spec/views/spotlight/roles/index.html.erb_spec.rb b/spec/views/spotlight/roles/index.html.erb_spec.rb index 7e8bf1b20..51e9246b7 100644 --- a/spec/views/spotlight/roles/index.html.erb_spec.rb +++ b/spec/views/spotlight/roles/index.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/roles/index', type: :view do +RSpec.describe 'spotlight/roles/index', type: :view do let(:user) { stub_model(Spotlight::Engine.user_class, email: 'jane@example.com') } let(:exhibit) { FactoryBot.create(:exhibit) } let(:admin_role) { FactoryBot.create(:role, role: 'admin', user:, resource: exhibit) } diff --git a/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb b/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb index 6a65dd58b..ed80cac34 100644 --- a/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb +++ b/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/search_configurations/_facet_metadata', type: :view do +RSpec.describe 'spotlight/search_configurations/_facet_metadata', type: :view do let(:field_config) { nil } let(:blacklight_config) { nil } diff --git a/spec/views/spotlight/search_configurations/_facets.html.erb_spec.rb b/spec/views/spotlight/search_configurations/_facets.html.erb_spec.rb index c74fac102..467167e58 100644 --- a/spec/views/spotlight/search_configurations/_facets.html.erb_spec.rb +++ b/spec/views/spotlight/search_configurations/_facets.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/search_configurations/_facets', type: :view do +RSpec.describe 'spotlight/search_configurations/_facets', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let!(:custom_field) { FactoryBot.create(:custom_field, exhibit:, label: 'Foobar', field_type: 'vocab') } let(:config) do diff --git a/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb b/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb index b8d8c7d21..cbe26b455 100644 --- a/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb +++ b/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/search_configurations/_search_fields', type: :view do +RSpec.describe 'spotlight/search_configurations/_search_fields', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let(:f) do form_helper = nil diff --git a/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb b/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb index 0248cf3b6..da50ddb09 100644 --- a/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb +++ b/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/search_configurations/_sort', type: :view do +RSpec.describe 'spotlight/search_configurations/_sort', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let(:f) do form_helper = nil diff --git a/spec/views/spotlight/searches/_search.html.erb_spec.rb b/spec/views/spotlight/searches/_search.html.erb_spec.rb index 885e1dbeb..ac5d95b2c 100644 --- a/spec/views/spotlight/searches/_search.html.erb_spec.rb +++ b/spec/views/spotlight/searches/_search.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/searches/_search.html.erb', type: :view do +RSpec.describe 'spotlight/searches/_search.html.erb', type: :view do let(:search) do FactoryBot.build_stubbed(:search, exhibit: FactoryBot.create(:exhibit), id: 99, diff --git a/spec/views/spotlight/searches/edit.html.erb_spec.rb b/spec/views/spotlight/searches/edit.html.erb_spec.rb index fb5904186..57ead5807 100644 --- a/spec/views/spotlight/searches/edit.html.erb_spec.rb +++ b/spec/views/spotlight/searches/edit.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/searches/edit.html.erb', type: :view do +RSpec.describe 'spotlight/searches/edit.html.erb', type: :view do let(:blacklight_config) do Blacklight::Configuration.new do |config| config.add_facet_field :some_field diff --git a/spec/views/spotlight/searches/index.html.erb_spec.rb b/spec/views/spotlight/searches/index.html.erb_spec.rb index 5ea701505..61244927c 100644 --- a/spec/views/spotlight/searches/index.html.erb_spec.rb +++ b/spec/views/spotlight/searches/index.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/searches/index.html.erb', type: :view do +RSpec.describe 'spotlight/searches/index.html.erb', type: :view do let(:exhibit) { stub_model(Spotlight::Exhibit) } before do diff --git a/spec/views/spotlight/shared/_exhibit_sidebar.html.erb_spec.rb b/spec/views/spotlight/shared/_exhibit_sidebar.html.erb_spec.rb index 6be7724cf..c372d610b 100644 --- a/spec/views/spotlight/shared/_exhibit_sidebar.html.erb_spec.rb +++ b/spec/views/spotlight/shared/_exhibit_sidebar.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/shared/_exhibit_sidebar', type: :view do +RSpec.describe 'spotlight/shared/_exhibit_sidebar', type: :view do let(:current_exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb index 679ecf1b7..95e95fba5 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_browse_block.html.erb', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_browse_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/browse_block' } let(:page) { double('Page', display_sidebar?: true) } let(:search) { FactoryBot.create(:search) } diff --git a/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb index 0f1685ee3..844bcdb6f 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_iframe_block.html.erb', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_iframe_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/iframe_block' } let(:block) do OpenStruct.new diff --git a/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb index edd3d0b16..cbb8a20a8 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_link_to_search_block.html.erb', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_link_to_search_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/link_to_search_block' } let(:page) { double('Page', display_sidebar?: true) } let(:search) { FactoryBot.create(:search, query_params: { a: 1 }) } diff --git a/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb index d4cd5ce2c..ca079e866 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_rule_block.html.erb', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_rule_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/rule_block' } it 'has an hr' do diff --git a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb index 1af171e26..9a16e5b0a 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_solr_documents_block.html.erb', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_solr_documents_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_block' } let(:page) { double('Page') } let(:block) do diff --git a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb index 9e9c09845..e709c1e09 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_carousel_block' } let(:block) do SirTrevorRails::Blocks::SolrDocumentsCarouselBlock.new({ type: 'block', data: {} }, page) diff --git a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb index 7d67b8e66..f91c6fc1d 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_embed_block' } let(:page) { double('Page') } let(:block) do diff --git a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb index 35831e778..29bd19e17 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_features_block' } let(:block) do SirTrevorRails::Blocks::SolrDocumentsFeaturesBlock.new({ type: 'block', data: { 'show-primary-caption' => true, 'primary-caption-field' => 'x' } }, page) diff --git a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb index 4dbcacc42..5f46a7178 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_solr_documents_grid_block', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_solr_documents_grid_block', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_grid_block' } let(:page) { double('Page') } let(:block) do diff --git a/spec/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb_spec.rb b/spec/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb_spec.rb index 32a3ff602..74802eac6 100644 --- a/spec/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb_spec.rb +++ b/spec/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sir_trevor/blocks/_uploaded_items_block', type: :view do +RSpec.describe 'spotlight/sir_trevor/blocks/_uploaded_items_block', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/uploaded_items_block' } let(:page) { double('Page') } let(:block) do diff --git a/spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb b/spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb index cbb5dfc5d..3dadcdb16 100644 --- a/spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb +++ b/spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/sites/edit_exhibits', type: :view do +RSpec.describe 'spotlight/sites/edit_exhibits', type: :view do let!(:exhibit_a) { FactoryBot.create(:exhibit) } let!(:exhibit_b) { FactoryBot.create(:exhibit) } diff --git a/spec/views/spotlight/tags/index.html.erb_spec.rb b/spec/views/spotlight/tags/index.html.erb_spec.rb index d964aa404..3c160f9a5 100644 --- a/spec/views/spotlight/tags/index.html.erb_spec.rb +++ b/spec/views/spotlight/tags/index.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/tags/index.html.erb', type: :view do +RSpec.describe 'spotlight/tags/index.html.erb', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let!(:tag1) { FactoryBot.create(:tagging, tagger: exhibit, taggable: exhibit) } let!(:tag2) { FactoryBot.create(:tagging, tagger: exhibit, taggable: exhibit) } diff --git a/spec/views/spotlight/translations/_import.html.erb_spec.rb b/spec/views/spotlight/translations/_import.html.erb_spec.rb index 3f2e9f227..db484fa7c 100644 --- a/spec/views/spotlight/translations/_import.html.erb_spec.rb +++ b/spec/views/spotlight/translations/_import.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/translations/_import.html.erb', type: :view do +RSpec.describe 'spotlight/translations/_import.html.erb', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } before do diff --git a/spec/views/spotlight/translations/_page.html.erb_spec.rb b/spec/views/spotlight/translations/_page.html.erb_spec.rb index ef14a87ce..742e99e40 100644 --- a/spec/views/spotlight/translations/_page.html.erb_spec.rb +++ b/spec/views/spotlight/translations/_page.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -describe 'spotlight/translations/_page.html.erb', type: :view do +RSpec.describe 'spotlight/translations/_page.html.erb', type: :view do let(:exhibit) { FactoryBot.create(:exhibit) } let(:page) { FactoryBot.create(:feature_page, exhibit:) }