From 274efc5ca79b0302e2de33fb4542ba88da4cad05 Mon Sep 17 00:00:00 2001 From: GriffinJ Date: Tue, 19 Feb 2019 15:41:58 -0500 Subject: [PATCH] Adjusts the catalog show view feature test (exhibit factory slugs need to be explicitly given) --- spec/features/catalog_show_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/catalog_show_spec.rb b/spec/features/catalog_show_spec.rb index 1caa1557..c443fde7 100644 --- a/spec/features/catalog_show_spec.rb +++ b/spec/features/catalog_show_spec.rb @@ -1,8 +1,7 @@ require 'rails_helper' RSpec.describe 'Catalog', type: :feature, js: true do - let(:exhibit) { FactoryBot.create(:exhibit, title: 'Exhibit Title 1') } - let(:curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) } + let(:exhibit) { FactoryBot.create(:exhibit, title: 'Exhibit Title 1', slug: 'exhibit-title-1') } let(:admin) { FactoryBot.create(:exhibit_admin, exhibit: exhibit) } let(:document_id) { '1r66j4408' } let(:id) { Digest::MD5.hexdigest("#{exhibit.id}-#{document_id}") }