Sha256: 56b84acb107f1a0610ed04abf376e96c80f5b32a8e9d0694e0bbcd8c8111405f
Contents?: true
Size: 1.48 KB
Versions: 10
Compression:
Stored size: 1.48 KB
Contents
# frozen_string_literal: true # Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Admin::UsersController do describe "routing" do it "recognizes and generates #index" do expect(get: "/admin").to route_to(controller: "admin/users", action: "index") end it "recognizes and generates #new" do expect(get: "/admin/users/new").to route_to(controller: "admin/users", action: "new") end it "recognizes and generates #create" do expect(post: "/admin/users").to route_to(controller: "admin/users", action: "create") end it "recognizes and generates #show" do expect(get: "/admin/users/1").to route_to(controller: "admin/users", action: "show", id: "1") end it "recognizes and generates #edit" do expect(get: "/admin/users/1/edit").to route_to(controller: "admin/users", action: "edit", id: "1") end it "recognizes and generates #update" do expect(put: "/admin/users/1").to route_to(controller: "admin/users", action: "update", id: "1") end it "recognizes and generates #destroy" do expect(delete: "/admin/users/1").to route_to(controller: "admin/users", action: "destroy", id: "1") end end end
Version data entries
10 entries across 10 versions & 1 rubygems