Sha256: 27de4dfa42f252912ddf4a0268c2985621dfbe85afec5d67c9c03a54f8ee2acc
Contents?: true
Size: 1.9 KB
Versions: 1
Compression:
Stored size: 1.9 KB
Contents
require_relative 'test_helper' 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/api_token', method: :get}, {controller: 'session', action: 'api_token'}) 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 = 'ue5tqbx3u4z7jxxglickknirxroy7c3bgig4e2yccbmwqvf3r2vq' assert_routing({path: "/session/token/#{code}", method: :get}, {controller: 'session', action: 'token', code: code}) assert_routing({path: '/auth/failure', method: :get}, {controller: 'session', action: 'omniauth_failure'}) assert_routing({path: '/auth/twitter/callback', method: :get}, {controller: 'session', action: 'omniauth', provider: 'twitter'}) assert_routing({path: '/auth/twitter/callback', method: :post}, {controller: 'session', action: 'omniauth', provider: 'twitter'}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authpwn_rails-0.21.0 | test/routes_test.rb |