{"action":"created","issue":{"url":"https://api.github.com/repos/wrozka/capybara-angular/issues/23","labels_url":"https://api.github.com/repos/wrozka/capybara-angular/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/wrozka/capybara-angular/issues/23/comments","events_url":"https://api.github.com/repos/wrozka/capybara-angular/issues/23/events","html_url":"https://github.com/wrozka/capybara-angular/pull/23","id":113821820,"number":23,"title":"Added a document ready condition to setup_ready","user":{"login":"dkniffin","id":1680080,"avatar_url":"https://avatars.githubusercontent.com/u/1680080?v=3","gravatar_id":"","url":"https://api.github.com/users/dkniffin","html_url":"https://github.com/dkniffin","followers_url":"https://api.github.com/users/dkniffin/followers","following_url":"https://api.github.com/users/dkniffin/following{/other_user}","gists_url":"https://api.github.com/users/dkniffin/gists{/gist_id}","starred_url":"https://api.github.com/users/dkniffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkniffin/subscriptions","organizations_url":"https://api.github.com/users/dkniffin/orgs","repos_url":"https://api.github.com/users/dkniffin/repos","events_url":"https://api.github.com/users/dkniffin/events{/privacy}","received_events_url":"https://api.github.com/users/dkniffin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-28T13:33:05Z","updated_at":"2015-10-29T12:42:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wrozka/capybara-angular/pulls/23","html_url":"https://github.com/wrozka/capybara-angular/pull/23","diff_url":"https://github.com/wrozka/capybara-angular/pull/23.diff","patch_url":"https://github.com/wrozka/capybara-angular/pull/23.patch"},"body":"This fixed a bug I was having where I believe angular wasn't completely loaded, but capybara was still trying to do things:\r\n\r\n````\r\nError: [ng:test] no injector found for element argument to getTestability\r\nhttp://errors.angularjs.org/1.3.13/ng/test\r\n    at http://localhost:9000/bower_components/angular/angular.js:1509 in getTestability\r\n    at phantomjs://webpage.evaluate():5\r\n    at phantomjs://webpage.evaluate():12\r\n    at phantomjs://webpage.evaluate():12 (Capybara::Poltergeist::JavascriptError)\r\n````"},"comment":{"url":"https://api.github.com/repos/wrozka/capybara-angular/issues/comments/152166935","html_url":"https://github.com/wrozka/capybara-angular/pull/23#issuecomment-152166935","issue_url":"https://api.github.com/repos/wrozka/capybara-angular/issues/23","id":152166935,"user":{"login":"dkniffin","id":1680080,"avatar_url":"https://avatars.githubusercontent.com/u/1680080?v=3","gravatar_id":"","url":"https://api.github.com/users/dkniffin","html_url":"https://github.com/dkniffin","followers_url":"https://api.github.com/users/dkniffin/followers","following_url":"https://api.github.com/users/dkniffin/following{/other_user}","gists_url":"https://api.github.com/users/dkniffin/gists{/gist_id}","starred_url":"https://api.github.com/users/dkniffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkniffin/subscriptions","organizations_url":"https://api.github.com/users/dkniffin/orgs","repos_url":"https://api.github.com/users/dkniffin/repos","events_url":"https://api.github.com/users/dkniffin/events{/privacy}","received_events_url":"https://api.github.com/users/dkniffin/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T12:42:33Z","updated_at":"2015-10-29T12:42:33Z","body":"@wrozka I tried that, and I don't think it worked. I'm a little out of my depth here, but I think the problem I was running into was that angular wasn't fully loaded, so I thought it'd be safer to use my own document ready function, rather than rely on angular's."}}