Created
June 14, 2012 20:58
-
-
Save cwoodcox/2932916 to your computer and use it in GitHub Desktop.
solution for gist: 2932517
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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