{"action":"opened","issue":{"url":"https://api.github.com/repos/railsware/rack_session_access/issues/21","labels_url":"https://api.github.com/repos/railsware/rack_session_access/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/railsware/rack_session_access/issues/21/comments","events_url":"https://api.github.com/repos/railsware/rack_session_access/issues/21/events","html_url":"https://github.com/railsware/rack_session_access/issues/21","id":102819472,"number":21,"title":"Capybara::ElementNotFound: Unable to find field \"data\" while testing Rails Engines","user":{"login":"onomated","id":1012979,"avatar_url":"https://avatars.githubusercontent.com/u/1012979?v=3","gravatar_id":"","url":"https://api.github.com/users/onomated","html_url":"https://github.com/onomated","followers_url":"https://api.github.com/users/onomated/followers","following_url":"https://api.github.com/users/onomated/following{/other_user}","gists_url":"https://api.github.com/users/onomated/gists{/gist_id}","starred_url":"https://api.github.com/users/onomated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onomated/subscriptions","organizations_url":"https://api.github.com/users/onomated/orgs","repos_url":"https://api.github.com/users/onomated/repos","events_url":"https://api.github.com/users/onomated/events{/privacy}","received_events_url":"https://api.github.com/users/onomated/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-24T15:26:21Z","updated_at":"2015-08-24T15:26:21Z","closed_at":null,"body":"I'm having problems getting this to work with Rails Engines even after cross referencing several [different](http://railsware.com/blog/2012/01/07/accessing-application-session-in-capybara/) [resources](http://blog.pivotal.io/pivotal-labs/labs/faking-authentication-for-capybara-tests-within-a-rails-engine).  I'm getting the following error after making calls to set the rack session like so:\r\n \r\n```ruby\r\npage.set_rack_session('warden.user.user.key' => User.serialize_into_session(user).unshift('User'))\r\n\r\nCapybara::ElementNotFound: Unable to find field \"data\"\r\n```\r\nThis is raised on calling `fill_in \"data\", :with => data`\r\n\r\nI've confirmed that my dummy engine loads and uses the required middleware:\r\n\r\n```ruby\r\n$ rake RAILS_ENV=test middleware\r\n...\r\nuse Rack::ConditionalGet\r\nuse Rack::ETag\r\nuse Warden::Manager\r\nuse RackSessionAccess::Middleware\r\nrun TestApp::Application.routes\r\n```\r\n\r\nAnything else I may be missing?  Here's my spec software stack:\r\n```\r\nrails (4.2.3)\r\nrspec-rails (3.3.3)\r\ncapybara (2.4.4)\r\nrack_session_access (0.1.1)\r\n```\r\n"}}