-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Populate MinterState row after database is cleaned
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
RSpec.configure do |config| | ||
# AF::Noid 2.x stores minter state in the database by default, and | ||
# CC's spec_helper clears the database as the test suite runs. This | ||
# puts CC into a broken state while the test suite is running. The | ||
# patch below makes sure there is always at least one MinterState | ||
# instance in the database. | ||
config.before(:each) do | ||
MinterState.create( | ||
namespace: ActiveFedora::Noid.config.namespace, | ||
template: ActiveFedora::Noid.config.template | ||
) | ||
end | ||
end |