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" }
17 { :path => "/export/embed", :method => :get },
18 { :controller => "export", :action => "embed" }
24 assert_response :success
25 assert_template 'export/start'
29 get :finish, {:minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => 'osm'}
30 assert_response :redirect
33 def test_finish_mapnik
34 get :finish, {:minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => 'mapnik', :mapnik_format => 'test', :mapnik_scale => '12'}
35 assert_response :redirect