{"action":"closed","issue":{"url":"https://api.github.com/repos/rails/rails/issues/27352","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/27352/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/27352/comments","events_url":"https://api.github.com/repos/rails/rails/issues/27352/events","html_url":"https://github.com/rails/rails/issues/27352","id":195476735,"number":27352,"title":"mounted_helper for the same engine can't be defined multiple times","user":{"login":"k0kubun","id":3138447,"avatar_url":"https://avatars2.githubusercontent.com/u/3138447?v=3","gravatar_id":"","url":"https://api.github.com/users/k0kubun","html_url":"https://github.com/k0kubun","followers_url":"https://api.github.com/users/k0kubun/followers","following_url":"https://api.github.com/users/k0kubun/following{/other_user}","gists_url":"https://api.github.com/users/k0kubun/gists{/gist_id}","starred_url":"https://api.github.com/users/k0kubun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0kubun/subscriptions","organizations_url":"https://api.github.com/users/k0kubun/orgs","repos_url":"https://api.github.com/users/k0kubun/repos","events_url":"https://api.github.com/users/k0kubun/events{/privacy}","received_events_url":"https://api.github.com/users/k0kubun/received_events","type":"User","site_admin":false},"labels":[{"id":107189,"url":"https://api.github.com/repos/rails/rails/labels/actionpack","name":"actionpack","color":"FFF700","default":false},{"id":128692,"url":"https://api.github.com/repos/rails/rails/labels/needs%20feedback","name":"needs feedback","color":"ededed","default":false},{"id":35206628,"url":"https://api.github.com/repos/rails/rails/labels/routing","name":"routing","color":"e102d8","default":false},{"id":12449438,"url":"https://api.github.com/repos/rails/rails/labels/stale","name":"stale","color":"444444","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-14T09:11:18Z","updated_at":"2017-04-03T19:29:32Z","closed_at":"2017-04-03T19:29:32Z","body":"### Steps to reproduce\r\n\r\n```bash\r\ngit clone --branch engine-bug https://github.com/k0kubun/misc\r\ncd misc/engine_bug\r\nbundle install\r\nbundle exec rake engine_bug\r\n# \"/b/sample/\"\r\n# \"/b/sample/\"\r\n```\r\n\r\n### Expected behavior\r\nWith following routes.rb\r\n\r\n```rb\r\nRails.application.routes.draw do\r\n  namespace :a do\r\n    mount Sample::Engine => '/sample'\r\n  end\r\n\r\n  namespace :b do\r\n    mount Sample::Engine => '/sample'\r\n  end\r\nend\r\n```\r\n\r\nand following class (like `RSpec::Rails::FeatureExampleGroup`),\r\n\r\n```rb\r\nklass = Class.new do\r\n  include Rails.application.routes.url_helpers\r\n  include Rails.application.routes.mounted_helpers\r\nend\r\n```\r\n\r\nI expect `klass` to behave like:\r\n\r\n```rb\r\nklass.new.a_sample.root_path #=> \"/a/sample/\"\r\nklass.new.b_sample.root_path #=> \"/b/sample/\"\r\n```\r\n\r\n### Actual behavior\r\n```rb\r\nklass.new.a_sample.root_path #=> \"/b/sample/\"\r\nklass.new.b_sample.root_path #=> \"/b/sample/\"\r\n```\r\n\r\nIs this intentional?\r\n\r\n### System configuration\r\n**Rails version**: 5.0.0.1\r\n\r\n**Ruby version**: 2.3.1\r\n"}}
{"actor":{"display_login":"probot-stale"}}