source: subversion/sites/rails_port/test/functional/export_controller_test.rb @ 15832

Last change on this file since 15832 was 14923, checked in by Shaun McDonald, 10 years ago

some tests for the site and export controllers

File size: 841 bytes
Line 
1require File.dirname(__FILE__) + '/../test_helper'
2
3class 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   
26end
Note: See TracBrowser for help on using the repository browser.