Sha256: 561c09c1bce7a9c9de6aedae0003399029b21dca0ad982d131318037be0f822d
Contents?: true
Size: 734 Bytes
Versions: 4
Compression:
Stored size: 734 Bytes
Contents
require 'test_helper' class DefaultRoutingTest < ActionController::TestCase test 'map new user verification' do assert_recognizes( { controller: 'devise/verification', action: 'new' }, { path: 'users/verification/new', method: :get } ) assert_named_route "/users/verification/new", :new_user_verification_path end test 'map user verification' do assert_recognizes( { controller: 'devise/verification', action: 'create' }, { path: 'users/verification', method: :post } ) # assert_named_route "/users/sign_in", :user_session_path end protected def assert_named_route(result, *args) assert_equal result, @routes.url_helpers.send(*args) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
devise-verifiable-1.0.0 | test/routes_test.rb |
devise-verifiable-0.0.3 | test/routes_test.rb |
devise-verifiable-0.0.2 | test/routes_test.rb |
devise-verifiable-0.0.1 | test/routes_test.rb |