{"action":"closed","issue":{"url":"https://api.github.com/repos/justin808/react-webpack-rails-tutorial/issues/21","labels_url":"https://api.github.com/repos/justin808/react-webpack-rails-tutorial/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/justin808/react-webpack-rails-tutorial/issues/21/comments","events_url":"https://api.github.com/repos/justin808/react-webpack-rails-tutorial/issues/21/events","html_url":"https://github.com/justin808/react-webpack-rails-tutorial/issues/21","id":64692089,"number":21,"title":"Can't run feature tests -- problem and answer","user":{"login":"justin808","id":1118459,"avatar_url":"https://avatars.githubusercontent.com/u/1118459?v=3","gravatar_id":"","url":"https://api.github.com/users/justin808","html_url":"https://github.com/justin808","followers_url":"https://api.github.com/users/justin808/followers","following_url":"https://api.github.com/users/justin808/following{/other_user}","gists_url":"https://api.github.com/users/justin808/gists{/gist_id}","starred_url":"https://api.github.com/users/justin808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justin808/subscriptions","organizations_url":"https://api.github.com/users/justin808/orgs","repos_url":"https://api.github.com/users/justin808/repos","events_url":"https://api.github.com/users/justin808/events{/privacy}","received_events_url":"https://api.github.com/users/justin808/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-27T04:37:02Z","updated_at":"2015-03-27T04:37:20Z","closed_at":"2015-03-27T04:37:20Z","body":"If you get the message below when running rspec, then you'll want to check if you have qt-4.x installed. You need at least qt-5 installed.\r\n\r\n```\r\nbrew info qt\r\n```\r\nCheck the output.\r\n\r\nInstall qt5\r\n```\r\nbrew install qt5\r\n```\r\n\r\nThen you need to \r\n\r\n```\r\ngem uninstall capybara-webkit\r\nQMAKE=/usr/local/Cellar/qt5/5.4.0/bin/qmake bundle install\r\n```\r\n\r\n**IMPORTANT** Be sure that the path indicated for the QMAKE corresponds to a correct path.\r\n\r\nThen run\r\n\r\n```\r\nrspec\r\n```\r\n\r\nand you should see the tests have passed.\r\n\r\nHere's the full error:\r\n\r\n```\r\n  add post via horizontal, stacked, or inline form (FAILED - 1)\r\n  HTML screenshot: /Users/justin/j/react/react-webpack-rails-tutorial/tmp/capybara/screenshot_2015-03-26-18-13-04.931.html\r\n  Image screenshot: /Users/justin/j/react/react-webpack-rails-tutorial/tmp/capybara/screenshot_2015-03-26-18-13-04.931.png\r\n\r\nFailures:\r\n\r\n  1) Add new comment  add post via horizontal, stacked, or inline form\r\n     Failure/Error: click_link 'Horizontal Form'\r\n     Capybara::ElementNotFound:\r\n       Unable to find link \"Horizontal Form\"\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/capybara-2.4.4/lib/capybara/node/finders.rb:41:in `block in find'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/capybara-2.4.4/lib/capybara/node/base.rb:84:in `synchronize'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/capybara-2.4.4/lib/capybara/node/finders.rb:30:in `find'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/capybara-2.4.4/lib/capybara/node/actions.rb:27:in `click_link'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/capybara-2.4.4/lib/capybara/session.rb:676:in `block (2 levels) in <class:Session>'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/capybara-2.4.4/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'\r\n     # ./spec/features/comments_spec.rb:8:in `block (2 levels) in <top (required)>'\r\n     # ./spec/rails_helper.rb:43:in `block (3 levels) in <top (required)>'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/database_cleaner-1.4.1/lib/database_cleaner/generic/base.rb:15:in `cleaning'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/database_cleaner-1.4.1/lib/database_cleaner/base.rb:92:in `cleaning'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/database_cleaner-1.4.1/lib/database_cleaner/configuration.rb:86:in `block (2 levels) in cleaning'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/database_cleaner-1.4.1/lib/database_cleaner/configuration.rb:87:in `call'\r\n     # /Users/justin/.rvm/gems/ruby-2.1.5@rails42/gems/database_cleaner-1.4.1/lib/database_cleaner/configuration.rb:87:in `cleaning'\r\n     # ./spec/rails_helper.rb:42:in `block (2 levels) in <top (required)>'\r\n\r\nFinished in 4.29 seconds (files took 2.4 seconds to load)\r\n1 example, 1 failure\r\n\r\nFailed examples:\r\n\r\nrspec ./spec/features/comments_spec.rb:5 # Add new comment  add post via horizontal, stacked, or inline form\r\n```"}}