I have problem with routes in my gem. I have this example code for
adding routes :
match "/gallery/get/:id" => "gallery/
And I'm trying to test it by :
class RoutestTest < ActionController::TestCase
test 'map gallery get' do
assert_routing '/gallery/get/1', :controller => "gallery/
view", :action => "get"
I added puts Rails.application.routes.routes to see routes. Then I try
to test it I get :
ActionController::RoutingError: No route matches "/gallery/get/1"
What I'm doing wrog or is it any rails bug ?