Sha256: d4971f4202b98571f8aaceb8ad54ba013b6a7cc55c556dad84deaa567aeed390

Contents?: true

Size: 762 Bytes

Versions: 4

Compression:

Stored size: 762 Bytes

Contents

require 'test/test_helper'

class MapRoutingTest < ActionController::TestCase

  test 'map new user invitation' do
    assert_recognizes({:controller => 'devise/invitations', :action => 'new'}, {:path => 'users/invitation/new', :method => :get})
  end

  test 'map create user invitation' do
    assert_recognizes({:controller => 'devise/invitations', :action => 'create'}, {:path => 'users/invitation', :method => :post})
  end

  test 'map accept user invitation' do
    assert_recognizes({:controller => 'devise/invitations', :action => 'edit'}, 'users/invitation/accept')
  end

  test 'map update user invitation' do
    assert_recognizes({:controller => 'devise/invitations', :action => 'update'}, {:path => 'users/invitation', :method => :put})
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_invitable-0.3.5 test/routes_test.rb
devise_invitable-0.3.4 test/routes_test.rb
devise_invitable-0.3.2 test/routes_test.rb
devise_invitable-0.3.1 test/routes_test.rb