1 require File.dirname(__FILE__) + '/../test_helper'
3 class ExportControllerTest < ActionController::TestCase
4 # Replace this with your real tests.
7 assert_response :success
8 assert_template 'start'
12 get :finish, {:minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => 'osm'}
13 assert_response :redirect
16 def test_finish_mapnik
17 get :finish, {:minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => 'mapnik', :mapnik_format => 'test', :mapnik_scale => '12'}
18 assert_response :redirect
21 def test_finish_osmarender
22 get :finish, {:minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => 'osmarender', :osmarender_format => 'test', :osmarender_zoom => '12'}
23 assert_response :redirect