Skip to content

Commit

Permalink
Hound's right
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Oct 18, 2023
1 parent 2db3c35 commit 90f8a6e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/lib/project_copier_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

describe ProjectCopier do
Expand Down Expand Up @@ -40,10 +42,11 @@
end

it 'creates Talk roles for the new project and its owner' do
allow(TalkAdminCreateWorker).to receive(:perform_async)
copied_project
expect(TalkAdminCreateWorker)
.to receive(:perform_async)
.to have_received(:perform_async)
.with(be_kind_of(Integer))
copied_project
end

context 'when a project has active_worklfows' do
Expand Down Expand Up @@ -94,7 +97,7 @@

it 'copies the field guide attached images' do
fg = create(:field_guide, project: project)
fg.attached_images << create(:medium, type: "field_guide_attached_image", linked: fg)
fg.attached_images << create(:medium, type: 'field_guide_attached_image', linked: fg)
expect(copied_project.field_guides.first.attached_images[0]).to be_valid
end
end
Expand Down

0 comments on commit 90f8a6e

Please sign in to comment.