From 536e4413f6ea89356de0ee39a213b7868be962f0 Mon Sep 17 00:00:00 2001 From: Sean Crowe <1069588+crowesn@users.noreply.github.com> Date: Mon, 13 Nov 2023 09:35:09 -0500 Subject: [PATCH] replace class calls with sym-link for factorybot (#1111) Co-authored-by: crowesn --- spec/support/shared/concern_calls.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/support/shared/concern_calls.rb b/spec/support/shared/concern_calls.rb index 67438f60..e404a32b 100644 --- a/spec/support/shared/concern_calls.rb +++ b/spec/support/shared/concern_calls.rb @@ -2,7 +2,8 @@ shared_examples 'concern calls' do |work_class| let!(:user) { create(:user) } - let(:work) { FactoryBot.build(work_class.classify.constantize, user: user, college: "ceas", department: "Test", creator: ["Test"], description: ["Test"], license: ["http://www.opendatacommons.org/licenses/by/1.0/"]) } + let(:work) { FactoryBot.build(work_class.singularize.to_sym, user: user, college: "ceas", department: "Test", creator: ["Test"], description: ["Test"], license: ["http://www.opendatacommons.org/licenses/by/1.0/"]) } + let(:parameters) do { "access": "open",