]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/swf_controller_test.rb
Reorganise tests to match modern rails test layout
[rails.git] / test / controllers / swf_controller_test.rb
diff --git a/test/controllers/swf_controller_test.rb b/test/controllers/swf_controller_test.rb
new file mode 100644 (file)
index 0000000..d721313
--- /dev/null
@@ -0,0 +1,12 @@
+require 'test_helper'
+
+class SwfControllerTest < ActionController::TestCase
+  ##
+  # test all routes which lead to this controller
+  def test_routes
+    assert_routing(
+      { :path => "/api/0.6/swf/trackpoints", :method => :get },
+      { :controller => "swf", :action => "trackpoints" }
+    )
+  end
+end