4 class VersionsControllerTest < ActionController::TestCase
6 # test all routes which lead to this controller
9 { :path => "/api/versions", :method => :get },
10 { :controller => "api/versions", :action => "show" }
13 { :controller => "api/versions", :action => "show" },
14 { :path => "/api/versions", :method => :get }
20 assert_response :success
21 assert_select "osm[generator='#{Settings.generator}']", :count => 1 do
22 assert_select "api", :count => 1 do
23 assert_select "version", Settings.api_version
28 def test_no_version_in_root_element
30 assert_response :success
31 assert_select "osm[version]", :count => 0