{"issue":{"state":"open","created_at":"2011-12-02T09:23:09Z","updated_at":"2011-12-02T23:14:40Z","comments":3,"user":{"gravatar_id":"6d89be962aea6ca120236b264edcf2ca","id":42868,"url":"https://api.github.com/users/tvdeyen","avatar_url":"https://secure.gravatar.com/avatar/6d89be962aea6ca120236b264edcf2ca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"tvdeyen"},"body":"Given a namespaced engine:\r\n\r\n```\r\nmodule Alchemy\r\n\tclass Engine < Rails::Engine\r\n\t\tisolate_namespace Alchemy\r\n\t\tengine_name 'alchemy'\r\n\tend\r\nend\r\n```\r\n\r\nAlso given a dummy app, where the engine is mounted into a namespace:\r\n\r\n```\r\nRails.application.routes.draw do\r\n\tmount Alchemy::Engine => \"/alchemy\"\r\nend\r\n```\r\n\r\n```\r\ndescribe \"The Routing\", :type => :routing do\r\n\r\n\tdescribe \"urls for downloads\" do\r\n\r\n\t\tit \"should have a named route\" do\r\n\t\t\t{\r\n\t\t\t\t:get => \"/alchemy/attachment/32/download/Presseveranstaltung.pdf\"\r\n\t\t\t}.should route_to(\r\n\t\t\t\t:controller => \"alchemy/attachments\",\r\n\t\t\t\t:action => \"download\",\r\n\t\t\t\t:id => \"32\",\r\n\t\t\t\t:name => \"Presseveranstaltung\",\r\n\t\t\t\t:suffix => \"pdf\"\r\n\t\t\t)\r\n\t\tend\r\n\tend\r\nend\r\n```\r\n\r\nFails!\r\n\r\nTesting it manually inside the same dumm app. It passes!\r\n\r\nI also tried to `include Alchemy::Engine.routes.url_helpers`\r\n\r\nNo luck :(\r\n","assignee":null,"id":2425337,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":469,"title":"routing specs not passing if using a namespaced engine","closed_at":null,"html_url":"https://github.com/rspec/rspec-rails/issues/469","url":"https://api.github.com/repos/rspec/rspec-rails/issues/469","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T23:14:40Z","updated_at":"2011-12-02T23:14:40Z","user":{"gravatar_id":"6d89be962aea6ca120236b264edcf2ca","id":42868,"url":"https://api.github.com/users/tvdeyen","avatar_url":"https://secure.gravatar.com/avatar/6d89be962aea6ca120236b264edcf2ca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"tvdeyen"},"body":"I really think this is a rails issue. You are using `assert_recognizes` and this seems not to handle routes from mounted engines correctly.","id":2997274,"url":"https://api.github.com/repos/rspec/rspec-rails/issues/comments/2997274"}}