3 class SwfControllerTest < ActionController::TestCase
5 # test all routes which lead to this controller
8 { :path => "/api/0.6/swf/trackpoints", :method => :get },
9 { :controller => "swf", :action => "trackpoints" }
14 # basic test that trackpoints at least returns some sort of flash movie
16 get :trackpoints, :xmin => 51, :xmax => 52, :ymin => -1, :ymax => 1, :baselong => 0, :basey => 0, :masterscale => 1
17 assert_response :success
18 assert_equal "application/x-shockwave-flash", response.content_type
19 assert_match /^FWS/, response.body