Skip to content

Commit

Permalink
Provide a working example for spec_helper additions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Dec 9, 2016
1 parent d18e8f3 commit bd49eb5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -127,11 +127,12 @@ Using the database-backed minter can cause problems with your test suite, where
require 'active_fedora/noid/rspec'

RSpec.configure do |config|
config.include(ActiveFedora::Noid::RSpec)
include(ActiveFedora::Noid::RSpec)

config.before(:suite) { disable_production_minter! }
config.after(:suite) { enable_production_minter! }
end

before(:suite) { disable_production_minter! }
after(:suite) { enable_production_minter! }
```

If you switch to the new database-backed minter and want to include in that minter the state of your current file-backed minter, AF::Noid 2.0.0 provides a new rake task that will copy your minter's state from the filesystem to the database:
Expand Down

0 comments on commit bd49eb5

Please sign in to comment.