Skip to content

Instantly share code, notes, and snippets.

@cwoodcox
Created June 14, 2012 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwoodcox/2932916 to your computer and use it in GitHub Desktop.
Save cwoodcox/2932916 to your computer and use it in GitHub Desktop.
solution for gist: 2932517
class RoutesTest < ActionDispatch::IntegrationTest
def setup
@routes = Shim::Engine.routes
end
def test_index_route
assert_routing "", { :controller => "shim/pages", :action => "show", :id => "index" }
end
def test_page_route
assert_routing "some-page", { :controller => "shim/pages", :action => "show", :id => "some-page" }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment