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

Version Path
alchemy-devise-4.2.0 spec/routing/password_routing_spec.rb
alchemy-devise-4.1.0 spec/routing/password_routing_spec.rb
alchemy-devise-4.1.0.beta spec/routing/password_routing_spec.rb
alchemy-devise-4.0.0 spec/routing/password_routing_spec.rb
alchemy-devise-3.6.0 spec/routing/password_routing_spec.rb
alchemy-devise-3.5.0 spec/routing/password_routing_spec.rb
alchemy-devise-3.5.0.beta spec/routing/password_routing_spec.rb
alchemy-devise-3.4.0 spec/routing/password_routing_spec.rb
alchemy-devise-3.3.0 spec/routing/password_routing_spec.rb
alchemy-devise-3.2.0 spec/routing/password_routing_spec.rb
alchemy-devise-2.1.0 spec/routing/password_routing_spec.rb
alchemy-devise-2.1.0.beta3 spec/routing/password_routing_spec.rb