Changeset 169
- Timestamp:
- 07/20/08 22:41:43 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nethorus/test/functional/device_admin_controller_test.rb
- Property svn:mergeinfo set
r130 r169 28 28 require File.dirname(__FILE__) + '/../test_helper' 29 29 30 class Device sControllerTest < ActionController::TestCase30 class DeviceAdminControllerTest < ActionController::TestCase 31 31 32 32 33 # Validate the routing of actions in the Device scontroller33 # Validate the routing of actions in the Device Admin controller 34 34 35 35 def test_manage_actions 36 36 37 assert_routing 'devices', { :controller => 'devices', :action => 'index' } 38 assert_routing 'devices/show/1', { :controller => 'devices', :action => 'show', :id => '1' } 39 assert_routing 'devices/edit/1', { :controller => 'devices', :action => 'edit', :id => '1' } 40 assert_routing 'devices/destroy/1', { :controller => 'devices', :action => 'destroy', :id => '1' } 37 assert_routing 'admin/device', { :controller => 'device_admin', :action => 'index' } 38 assert_routing 'admin/device/1', { :controller => 'device_admin', :action => 'edit', :device_id => '1' } 41 39 42 40 end
