Sha256: 44f5800d00864a170571dbe800d6246781a19d5cd19a5d8e5e209df0ae7c7f71
Contents?: true
Size: 1.55 KB
Versions: 16
Compression:
Stored size: 1.55 KB
Contents
require File.expand_path('../test_helper', __FILE__) require 'authpwn_rails/generators/templates/session_controller.rb' # Tests the routes created by authpwn_session. class RoutesTest < ActionController::TestCase tests SessionController test "authpwn_session routes" do assert_routing({:path => "/session", :method => :get}, {:controller => 'session', :action => 'show'}) assert_routing({:path => "/session/new", :method => :get}, {:controller => 'session', :action => 'new'}) assert_routing({:path => "/session", :method => :post}, {:controller => 'session', :action => 'create'}) assert_routing({:path => "/session", :method => :delete}, {:controller => 'session', :action => 'destroy'}) assert_routing({:path => "/session", :method => :delete}, {:controller => 'session', :action => 'destroy'}) assert_routing({:path => "/session/change_password", :method => :get}, {:controller => 'session', :action => 'password_change'}) assert_routing({:path => "/session/change_password", :method => :post}, {:controller => 'session', :action => 'change_password'}) assert_routing({:path => "/session/reset_password", :method => :post}, {:controller => 'session', :action => 'reset_password'}) code = 'YZ-Fo8HX6_NyU6lVZXYi6cMDLV5eAgt35UTF5l8bD6A' assert_routing({:path => "/session/token/#{code}", :method => :get}, {:controller => 'session', :action => 'token', :code => code}) end end
Version data entries
16 entries across 16 versions & 1 rubygems