1 require File.dirname(__FILE__) + '/../test_helper'
3 class ExportControllerTest < ActionController::TestCase
6 # test all routes which lead to this controller
9 { :path => "/export/start", :method => :get },
10 { :controller => "export", :action => "start" }
13 { :path => "/export/finish", :method => :post },
14 { :controller => "export", :action => "finish" }
20 assert_response :success
21 assert_template 'export/start'
25 get :finish, {:minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => 'osm'}
26 assert_response :redirect
29 def test_finish_mapnik
30 get :finish, {:minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => 'mapnik', :mapnik_format => 'test', :mapnik_scale => '12'}
31 assert_response :redirect