Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.22 KB

README_FIXTURES.textile

File metadata and controls

71 lines (47 loc) · 1.22 KB

Hypatia Fixture Objects

These are objects creating for testing purposes. They are represented as foxml in:

  spec/fixtures

The ActiveFedora and OM configurations for these fixtures are already provided. See:

  app/models

For more documentation on ActiveFedora and OM configuration files, see …

Loading Fixture Objects

There are rake tasks to help with these chores. To see all rake tasks:

  rake -T

To see pertinent rake tasks for existing hypatia stuff:

  rake -T hypatia

To load fixtures into test

  rake hypatia:fixtures:load environment=test

To load fixtures into development

  rake hypatia:fixtures:load environment=development

To delete fixtures

  rake hypatia:fixtures:delete environment=test
    OR
  rake hypatia:fixtures:delete environment=development 

Refresh fixtures

Refresh deletes all the fixtures, then adds them again.

  rake hypatia:fixtures:refresh environment=test
    OR
  rake hypatia:fixtures:refresh environment=development 

To make jetty squeaky clean

(to ensure Solr is emptied out, in addition to Fedora)

  cd jetty
  git clean -df
  git checkout .