4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graberrequire 'spec_helper'
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graberdescribe Admin::UsersController do
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber it do
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber should route(:get, '/admin/users').to(
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber controller: :'admin/users', action: :index)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber end
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber it do
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber should route(:post, '/admin/users').to(
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber controller: :'admin/users', action: :create)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber end
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber it do
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber should route(:get, '/admin/users/new').to(
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber controller: :'admin/users', action: :new)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber end
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber it do
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber should route(:get, '/admin/users/123/edit').to(
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber controller: :'admin/users', action: :edit, id: 123)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber end
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber it do
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber should route(:get, '/admin/users/123').to(
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber controller: :'admin/users', action: :show, id: 123)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber end
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber it do
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber should route(:put, '/admin/users/123').to(
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber controller: :'admin/users', action: :update, id: 123)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber end
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber it do
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber should route(:delete, '/admin/users/123').to(
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber controller: :'admin/users', action: :destroy, id: 123)
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber end
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graberend
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber