79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksarequire 'spec_helper'
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksadescribe PermissionsController do
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa it do
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa should route(:get, '/repositories/my_repo/permissions').to(
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa controller: :permissions, action: :index,
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa repository_id: 'my_repo')
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa end
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa it do
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa should route(:post, '/repositories/my_repo/permissions').to(
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa controller: :permissions, action: :create,
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa repository_id: 'my_repo')
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa end
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa it do
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa should route(:put, '/repositories/my_repo/permissions/123').to(
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa controller: :permissions, action: :update,
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa repository_id: 'my_repo', id: 123)
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa end
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa it do
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa should route(:delete, '/repositories/my_repo/permissions/123').to(
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa controller: :permissions, action: :destroy,
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa repository_id: 'my_repo', id: 123)
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksa end
79ae833c746b7d5cf71d0d4011d64f88330c82e1Eugen Kuksaend