Skip to content

Commit

Permalink
Fix commented-out exception handling in with_test_environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
moseshll committed Oct 25, 2024
1 parent 5516ee1 commit da8f610
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ def with_test_environment
FileUtils.mkdir(new_journal_directory) unless File.exist?(new_journal_directory)
HathiTrust::Services.register(:logfile_directory) { new_logfile_directory }
HathiTrust::Services.register(:journal_directory) { new_journal_directory }
#begin
yield tmpdir
#ensure
HathiTrust::Services.register(:logfile_directory) { old_logfile_directory }
HathiTrust::Services.register(:journal_directory) { old_journal_directory }
#end
yield tmpdir
HathiTrust::Services.register(:logfile_directory) { old_logfile_directory }
HathiTrust::Services.register(:journal_directory) { old_journal_directory }
end
end
end
Expand Down

0 comments on commit da8f610

Please sign in to comment.