Skip to content

Commit

Permalink
Remove cruft.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon authored and tamsin johnson committed Aug 28, 2023
1 parent 4354751 commit 5ba61e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion spec/factories/hyrax_file_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
transient do
use { nil }
visibility_setting { nil }
file { nil }
end

after(:build) do |file_metadata, evaluator|
Expand Down
3 changes: 1 addition & 2 deletions spec/factories/hyrax_file_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
read_users { [] }
read_groups { [] }
with_index { true }
uploaded_files { [] }
end

after(:build) do |file_set, evaluator|
Expand All @@ -25,7 +24,7 @@
.assign_access_for(visibility: evaluator.visibility_setting)
end
file_set.file_ids = evaluator.files.map(&:id) if evaluator.files
file_set.original_file_id = evaluator&.original_file&.id || evaluator.files&.first&.id
file_set.original_file_id = evaluator.original_file.id if evaluator.original_file
file_set.extracted_text_id = evaluator.extracted_text.id if evaluator.extracted_text
file_set.thumbnail_id = evaluator.thumbnail.id if evaluator.thumbnail

Expand Down

0 comments on commit 5ba61e4

Please sign in to comment.