Sha256: 71907fb63abd60606e72933196905213537ac4acb0411dd941887436cce93f4e
Contents?: true
Size: 851 Bytes
Versions: 12
Compression:
Stored size: 851 Bytes
Contents
require 'spec_helper' describe "Password Routing" do routes { Alchemy::Engine.routes } it "routes to new password" do expect({ get: "/admin/passwords" }).to route_to( controller: "alchemy/passwords", action: "new" ) end it "routes to reset password" do expect({ post: "/admin/passwords" }).to route_to( controller: "alchemy/passwords", action: "create" ) end it "routes to edit password" do expect({ get: "/admin/passwords/123/edit/12345" }).to route_to( controller: "alchemy/passwords", action: "edit", id: "123", reset_password_token: "12345" ) end it "routes to update password" do expect({ patch: "/admin/passwords" }).to route_to( controller: "alchemy/passwords", action: "update" ) end end
Version data entries
12 entries across 12 versions & 1 rubygems