Skip to content

Commit

Permalink
Populate MinterState row after database is cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo committed Oct 20, 2016
1 parent 4855b12 commit f960839
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/support/minter_state_restoration.rb
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

0 comments on commit f960839

Please # to comment.