]> git.openstreetmap.org Git - rails.git/blob - test/functional/export_controller_test.rb
Merge 18123:18249 from trunk.
[rails.git] / test / functional / export_controller_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class ExportControllerTest < ActionController::TestCase
4   # Replace this with your real tests.
5   def test_start
6     get :start
7     assert_response :success
8     assert_template 'start'
9   end
10   
11   def test_finish_osm
12     get :finish, {:minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => 'osm'}
13     assert_response :redirect
14   end
15   
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
19   end
20   
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
24   end
25     
26 end