66ae4e01390ec8ddfd3f6fa5361095d5d2f1c2bdJulian Kornbergerrequire 'spec_helper'
66ae4e01390ec8ddfd3f6fa5361095d5d2f1c2bdJulian Kornberger
66ae4e01390ec8ddfd3f6fa5361095d5d2f1c2bdJulian Kornbergerdescribe OntologiesController do
971ac0f813b75124ed9472c42bb46c6d7a2942eaEugen Kuksa it do
971ac0f813b75124ed9472c42bb46c6d7a2942eaEugen Kuksa should route(:post, 'repositories/repopath/ontologies/retry_failed').to(
971ac0f813b75124ed9472c42bb46c6d7a2942eaEugen Kuksa repository_id: 'repopath', action: :retry_failed)
971ac0f813b75124ed9472c42bb46c6d7a2942eaEugen Kuksa end
66ae4e01390ec8ddfd3f6fa5361095d5d2f1c2bdJulian Kornberger
971ac0f813b75124ed9472c42bb46c6d7a2942eaEugen Kuksa it do
971ac0f813b75124ed9472c42bb46c6d7a2942eaEugen Kuksa should route(:post, 'repositories/repopath/ontologies/id/retry_failed').to(
971ac0f813b75124ed9472c42bb46c6d7a2942eaEugen Kuksa repository_id: 'repopath', action: :retry_failed, id: 'id')
971ac0f813b75124ed9472c42bb46c6d7a2942eaEugen Kuksa end
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa it do
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa should route(:get, 'repositories/repopath/ontologies').to(
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa controller: :ontologies, action: :index,
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa repository_id: 'repopath')
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa end
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa it do
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa should route(:get, 'repositories/repopath/ontologies/id/edit').to(
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa controller: :ontologies, action: :edit,
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa repository_id: 'repopath', id: 'id')
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa end
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa it do
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa should route(:get, 'repositories/repopath/ontologies/id').to(
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa controller: :ontologies, action: :show,
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa repository_id: 'repopath', id: 'id')
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa end
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa it do
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa should route(:put, 'repositories/repopath/ontologies/id').to(
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa controller: :ontologies, action: :update,
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa repository_id: 'repopath', id: 'id')
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa end
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa it do
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa should route(:delete, 'repositories/repopath/ontologies/id').to(
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa controller: :ontologies, action: :destroy,
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa repository_id: 'repopath', id: 'id')
0c1b1edea8d9368ca7369ddfd3d59760f0d0afe0Eugen Kuksa end
66ae4e01390ec8ddfd3f6fa5361095d5d2f1c2bdJulian Kornbergerend