Skip to content

Commit

Permalink
replace class calls with sym-link for factorybot (#1111)
Browse files Browse the repository at this point in the history
Co-authored-by: crowesn <crowesn@gmail.com>
  • Loading branch information
crowesn and crowesn committed Nov 13, 2023
1 parent a1d2003 commit 536e441
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/support/shared/concern_calls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 536e441

Please sign in to comment.