{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/947","repository_url":"https://api.github.com/repos/cucumber/cucumber-ruby","labels_url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/947/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/947/comments","events_url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/947/events","html_url":"https://github.com/cucumber/cucumber-ruby/issues/947","id":132022883,"number":947,"title":"Before hook never runs","user":{"login":"seanlinsley","id":688886,"avatar_url":"https://avatars.githubusercontent.com/u/688886?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlinsley","html_url":"https://github.com/seanlinsley","followers_url":"https://api.github.com/users/seanlinsley/followers","following_url":"https://api.github.com/users/seanlinsley/following{/other_user}","gists_url":"https://api.github.com/users/seanlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlinsley/subscriptions","organizations_url":"https://api.github.com/users/seanlinsley/orgs","repos_url":"https://api.github.com/users/seanlinsley/repos","events_url":"https://api.github.com/users/seanlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/seanlinsley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cucumber/cucumber-ruby/labels/Help%20wanted","name":"Help wanted","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-07T22:54:17Z","updated_at":"2016-04-25T22:48:22Z","closed_at":null,"body":"When the cucumber-rails gem released a new version (1.4.2 -> 1.4.3) which removed the `< 2` limitation on the cucumber gem, `Before` hooks seemed to stop working completely.\r\n\r\nI specifically noticed this through the Active Admin repo, who [has tests that shouldn't run on Rails 3.2](https://github.com/activeadmin/activeadmin/blob/7c1e64264167680afaffc4dab1a1338e7ca25d84/features/strong_parameters.feature#L1), so [we skip them with a tag](https://github.com/activeadmin/activeadmin/blob/7c1e64264167680afaffc4dab1a1338e7ca25d84/features/support/env.rb#L143-L145). Once 1.4.3 was released, that `Before` hook stopped being run. Adding this to the project's Gemfile fixes the issue temporarily:\r\n```ruby\r\ngem 'cucumber', '1.3.20'\r\n```\r\n\r\nHere's the Travis build where this started happening: https://travis-ci.org/activeadmin/activeadmin/builds/104775499\r\n\r\n`Before` hooks with no tags don't work either, but `Around` hooks still work.\r\n\r\nYou can reproduce with with the Active Admin repo by doing this:\r\n```sh\r\nexport RAILS=3.2.22\r\nbundle\r\ncucumber features/strong_parameters.feature"},"comment":{"url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/comments/214554460","html_url":"https://github.com/cucumber/cucumber-ruby/issues/947#issuecomment-214554460","issue_url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/947","id":214554460,"user":{"login":"marinalimeira","id":9384479,"avatar_url":"https://avatars.githubusercontent.com/u/9384479?v=3","gravatar_id":"","url":"https://api.github.com/users/marinalimeira","html_url":"https://github.com/marinalimeira","followers_url":"https://api.github.com/users/marinalimeira/followers","following_url":"https://api.github.com/users/marinalimeira/following{/other_user}","gists_url":"https://api.github.com/users/marinalimeira/gists{/gist_id}","starred_url":"https://api.github.com/users/marinalimeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marinalimeira/subscriptions","organizations_url":"https://api.github.com/users/marinalimeira/orgs","repos_url":"https://api.github.com/users/marinalimeira/repos","events_url":"https://api.github.com/users/marinalimeira/events{/privacy}","received_events_url":"https://api.github.com/users/marinalimeira/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T22:48:22Z","updated_at":"2016-04-25T22:48:22Z","body":"I'm having a issue very similar... I just put 5 tags in a `Before` and it's not working as it was supposed to."}}