{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/1483","labels_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1483/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1483/comments","events_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1483/events","html_url":"https://github.com/rspec/rspec-rails/issues/1483","id":114397557,"number":1483,"title":"Helper specs include the helper in the wrong order","user":{"login":"lowjoel","id":2505070,"avatar_url":"https://avatars.githubusercontent.com/u/2505070?v=3","gravatar_id":"","url":"https://api.github.com/users/lowjoel","html_url":"https://github.com/lowjoel","followers_url":"https://api.github.com/users/lowjoel/followers","following_url":"https://api.github.com/users/lowjoel/following{/other_user}","gists_url":"https://api.github.com/users/lowjoel/gists{/gist_id}","starred_url":"https://api.github.com/users/lowjoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowjoel/subscriptions","organizations_url":"https://api.github.com/users/lowjoel/orgs","repos_url":"https://api.github.com/users/lowjoel/repos","events_url":"https://api.github.com/users/lowjoel/events{/privacy}","received_events_url":"https://api.github.com/users/lowjoel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-31T08:22:55Z","updated_at":"2015-11-02T00:53:53Z","closed_at":"2015-11-02T00:53:53Z","body":"When I define:\r\n```ruby\r\nconfig.action_controller.include_all_helpers = false\r\n```\r\n\r\nwith the following controller hierarchy:\r\n```ruby\r\nBController < AController < ApplicationController\r\n```\r\n\r\nand corresponding helpers:\r\n```ruby\r\nApplicationHelper\r\nAHelper\r\nBHelper\r\n```\r\n\r\nIn a BController view, all helpers should look up BHelper, AHelper, then ApplicationHelper. That way BHelper and AHelper can override methods defined by ApplicationHelper (inspect the view context's singleton class ancestors)\r\n\r\nIn RSpec-Rails, the BHelper spec has ApplicationHelper included after BHelper, so overriding methods defined in BHelper never get called."},"comment":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/comments/152884180","html_url":"https://github.com/rspec/rspec-rails/issues/1483#issuecomment-152884180","issue_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1483","id":152884180,"user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars.githubusercontent.com/u/162976?v=3","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T00:53:53Z","updated_at":"2015-11-02T00:53:53Z","body":"Actually I'm wrong because the view is an instance so we have no choice but to use extend, so the only way to fix this is the workaround I described above. Sorry!"}}