Merge remote-tracking branch 'systemed/routing'
This commit is contained in:
commit
250bb47cc2
22 changed files with 1205 additions and 46 deletions
21
test/controllers/directions_controller_test.rb
Normal file
21
test/controllers/directions_controller_test.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
require 'test_helper'
|
||||
|
||||
class DirectionsControllerTest < ActionController::TestCase
|
||||
|
||||
##
|
||||
# test all routes which lead to this controller
|
||||
def test_routes
|
||||
assert_routing(
|
||||
{ :path => "/directions", :method => :get },
|
||||
{ :controller => "directions", :action => "search" }
|
||||
)
|
||||
end
|
||||
|
||||
###
|
||||
# test the search action
|
||||
def test_search
|
||||
get :search
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue