Skip to content

Commit

Permalink
Get a better pending message if there's no FOLIO record
Browse files Browse the repository at this point in the history
`skip` short-circuits the test execution, and there's no sense trying to run `nil` through the indexer and wait for it to blow up.
  • Loading branch information
cbeer authored Jul 19, 2023
1 parent 23aefd6 commit 238cc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/compare_sirsi_and_folio_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
File.read(path).scan(/to_field ["']([^"']+)["']/).map(&:first).uniq
end
before(:each) do
pending 'No record in FOLIO' unless folio_record.present?
skip 'No record in FOLIO' unless folio_record.present?
pending 'No source record' if folio_record.record['source_record'].none?
end

Expand Down

0 comments on commit 238cc0f

Please sign in to comment.